home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / mail / mh / updates / MH.6.8.2.Z / MH.6.8.2
Encoding:
Text File  |  1993-11-29  |  95.1 KB  |  3,888 lines

  1. *** ../mh-6.8.1/Patchlevel    Fri Aug 20 13:07:34 1993
  2. --- Patchlevel    Wed Aug 25 15:56:06 1993
  3. ***************
  4. *** 1 ****
  5. ! MH.6.8 patch.1
  6. --- 1 ----
  7. ! MH.6.8 patch.2
  8. *** ../mh-6.8.1/conf/mh-gen.8    Fri Aug 20 13:10:38 1993
  9. --- conf/mh-gen.8    Wed Aug 25 15:59:46 1993
  10. ***************
  11. *** 1,2 ****
  12. ! .\" @(#)$Id: mh-gen.8,v 2.111 1993/08/20 19:47:56 jromine Exp $
  13.   .\" uneven inter-word spacing (nroff line adjusting) hampers readability
  14. --- 1,2 ----
  15. ! .\" @(#)$Id: mh-gen.8,v 2.112 1993/08/25 18:07:10 jromine Exp $
  16.   .\" uneven inter-word spacing (nroff line adjusting) hampers readability
  17. ***************
  18. *** 3,5 ****
  19.   .if n .na
  20. ! .TH MH-GEN 8 MH.6.8.1 [mh.6]
  21.   .SH NAME
  22. --- 3,5 ----
  23.   .if n .na
  24. ! .TH MH-GEN 8 MH.6.8.2 [mh.6]
  25.   .SH NAME
  26. *** ../mh-6.8.1/conf/mhconfig.c    Fri Aug 20 13:10:36 1993
  27. --- conf/mhconfig.c    Wed Aug 25 15:59:45 1993
  28. ***************
  29. *** 1,7 ****
  30.   /* mhconfig.c - configure MH */
  31.   /* cc [-DSYS5] mhconfig.c -o mhconfig */
  32.   #ifndef    lint
  33. ! static char ident[] = "@(#)$Id: mhconfig.c,v 2.69 1993/08/20 19:47:46 jromine Exp $";
  34.   #endif    /* lint */
  35.   
  36.   #include <ctype.h>
  37. --- 1,7 ----
  38.   /* mhconfig.c - configure MH */
  39.   /* cc [-DSYS5] mhconfig.c -o mhconfig */
  40.   #ifndef    lint
  41. ! static char ident[] = "@(#)$Id: mhconfig.c,v 2.70 1993/08/25 18:07:10 jromine Exp $";
  42.   #endif    /* lint */
  43.   
  44.   #include <ctype.h>
  45. ***************
  46. *** 29,35 ****
  47.   #define    MAKE        "../%s/Makefile"
  48.   
  49.   #define    WARNING    "This file is automatically generated.  Do not edit!"
  50. ! #define    MHRELEASE    "6.8.1"        /* for version: "Maj.min.pat" */
  51.   #define    MHCENTERFOOT    "MH.6.8"    /* for nroff page footers */
  52.   #define    MHLEFTFOOT    "[mh.6]"    /* [mh.6]    MH.6.6   page# */
  53.   #define    MHSLIBVER    "3.2"        /* SunOS4 shared library version */
  54. --- 29,35 ----
  55.   #define    MAKE        "../%s/Makefile"
  56.   
  57.   #define    WARNING    "This file is automatically generated.  Do not edit!"
  58. ! #define    MHRELEASE    "6.8.2"        /* for version: "Maj.min.pat" */
  59.   #define    MHCENTERFOOT    "MH.6.8"    /* for nroff page footers */
  60.   #define    MHLEFTFOOT    "[mh.6]"    /* [mh.6]    MH.6.6   page# */
  61.   #define    MHSLIBVER    "3.2"        /* SunOS4 shared library version */
  62. *** ../mh-6.8.1/h/mshsbr.h    Fri Aug 20 13:10:34 1993
  63. --- h/mshsbr.h    Wed Aug 25 15:59:42 1993
  64. ***************
  65. *** 1,5 ****
  66.   /* mshsbr.h - definitions for msh */
  67. ! /* @(#)$Id: mshsbr.h,v 1.5 1992/05/12 22:04:01 jromine Exp $ */
  68.   
  69.   struct Cmd {
  70.       char    line[BUFSIZ];
  71. --- 1,5 ----
  72.   /* mshsbr.h - definitions for msh */
  73. ! /* @(#)$Id: mshsbr.h,v 1.6 1993/08/25 17:16:28 jromine Exp $ */
  74.   
  75.   struct Cmd {
  76.       char    line[BUFSIZ];
  77. ***************
  78. *** 78,81 ****
  79.   #endif /* BSD42 */
  80.   
  81.   
  82. ! long    lseek ();
  83. --- 78,81 ----
  84.   #endif /* BSD42 */
  85.   
  86.   
  87. ! off_t    lseek ();
  88. *** ../mh-6.8.1/mts/sendmail/smail.c    Fri Aug 20 13:09:34 1993
  89. --- mts/sendmail/smail.c    Wed Aug 25 15:58:24 1993
  90. ***************
  91. *** 1,6 ****
  92.   /* smail.c - MH interface to SendMail/SMTP */
  93.   #ifndef    lint
  94. ! static char ident[] = "@(#)$Id: smail.c,v 1.24 1993/08/20 16:14:30 jromine Exp $";
  95.   #endif
  96.   
  97.   /* LINTLIBRARY */
  98. --- 1,6 ----
  99.   /* smail.c - MH interface to SendMail/SMTP */
  100.   #ifndef    lint
  101. ! static char ident[] = "@(#)$Id: smail.c,v 1.25 1993/08/25 17:17:29 jromine Exp $";
  102.   #endif
  103.   
  104.   /* LINTLIBRARY */
  105. ***************
  106. *** 113,120 ****
  107.   static int    sm_werror(), smhear(), sm_rrecord(), sm_rerror();
  108.   
  109.   #ifdef    MPOP
  110. ! extern    int    errno, sys_nerr;
  111.   extern    char   *sys_errlist[];
  112.   extern    char  **brkstring (), **copyip (), *getcpy ();
  113.   #endif
  114.   
  115. --- 113,123 ----
  116.   static int    sm_werror(), smhear(), sm_rrecord(), sm_rerror();
  117.   
  118.   #ifdef    MPOP
  119. ! extern    int    errno
  120. ! #ifndef    BSD44
  121. ! extern    int    sys_nerr;
  122.   extern    char   *sys_errlist[];
  123. + #endif
  124.   extern    char  **brkstring (), **copyip (), *getcpy ();
  125.   #endif
  126.   
  127. *** ../mh-6.8.1/papers/changes/mh-changes.ms    Fri Aug 20 13:09:32 1993
  128. --- papers/changes/mh-changes.ms    Wed Aug 25 15:58:23 1993
  129. ***************
  130. *** 1,2 ****
  131. ! .\" @(#)$Id: mh-changes.ms,v 1.26 1993/08/20 17:11:02 jromine Exp $
  132.   .\" Standard -ms macros
  133. --- 1,2 ----
  134. ! .\" @(#)$Id: mh-changes.ms,v 1.27 1993/08/25 18:11:13 jromine Exp $
  135.   .\" Standard -ms macros
  136. ***************
  137. *** 6,8 ****
  138.   .\" remember to update date in text below
  139. ! .DA "August 20, 1993"
  140.   .if n \{\
  141. --- 6,8 ----
  142.   .\" remember to update date in text below
  143. ! .DA "August 25, 1993"
  144.   .if n \{\
  145. ***************
  146. *** 99,102 ****
  147.   .KE
  148. ! .ds LH Changes for MH 6.8.1
  149.   .bp
  150.   .SH
  151. --- 99,113 ----
  152.   .KE
  153. ! .ds LH Changes for MH 6.8.2
  154.   .bp
  155. + .SH
  156. + CHANGES FOR MH 6.8.2
  157. + .LP
  158. + The MH.6.8.2 patch release contains only
  159. + internal changes to support the BSD 4.4
  160. + and 386BSD versions of 
  161. + .SM
  162. + UNIX.
  163. + .NL
  164. + This is the current released version of \fIMH\fP
  165. + as of August 25, 1993.
  166.   .SH
  167. *** ../mh-6.8.1/sbr/advertise.c    Fri Aug 20 13:08:39 1993
  168. --- sbr/advertise.c    Wed Aug 25 15:57:18 1993
  169. ***************
  170. *** 1,6 ****
  171.   /* advertise.c - the heart of adios */
  172.   #ifndef    lint
  173. ! static char ident[] = "@(#)$Id: advertise.c,v 1.3 1992/12/15 00:20:22 jromine Exp $";
  174.   #endif    /* lint */
  175.   
  176.   #include "../h/mh.h"
  177. --- 1,6 ----
  178.   /* advertise.c - the heart of adios */
  179.   #ifndef    lint
  180. ! static char ident[] = "@(#)$Id: advertise.c,v 1.4 1993/08/25 17:18:31 jromine Exp $";
  181.   #endif    /* lint */
  182.   
  183.   #include "../h/mh.h"
  184. ***************
  185. *** 16,23 ****
  186. --- 16,25 ----
  187.    */
  188.   
  189.   extern int  errno;
  190. + #ifndef    BSD44    /* in <stdio.h> */
  191.   extern int  sys_nerr;
  192.   extern char *sys_errlist[];
  193. + #endif
  194.   
  195.   /*   */
  196.   
  197. *** ../mh-6.8.1/sbr/fdcompare.c    Fri Aug 20 13:08:49 1993
  198. --- sbr/fdcompare.c    Wed Aug 25 15:57:33 1993
  199. ***************
  200. *** 1,9 ****
  201.   /* fdcompare.c - are two files identical? */
  202.   
  203.   #include "../h/mh.h"
  204.   #include <stdio.h>
  205.   
  206. ! long lseek();
  207.   
  208.   
  209.   fdcompare (fd1, fd2)
  210. --- 1,13 ----
  211.   /* fdcompare.c - are two files identical? */
  212. + #ifndef    lint
  213. + static char Id[] = "@(#)$Id: fdcompare.c,v 1.4 1993/08/25 18:29:28 jromine Exp $";
  214. + #endif
  215.   
  216.   #include "../h/mh.h"
  217.   #include <stdio.h>
  218. + #include <sys/types.h>    /* for off_t */
  219.   
  220. ! off_t lseek();
  221.   
  222.   
  223.   fdcompare (fd1, fd2)
  224. ***************
  225. *** 36,42 ****
  226.       resp = 0;
  227.   
  228.   leave: ;
  229. !     (void) lseek (fd1, 0L, 0);
  230. !     (void) lseek (fd2, 0L, 0);
  231.       return resp;
  232.   }
  233. --- 40,46 ----
  234.       resp = 0;
  235.   
  236.   leave: ;
  237. !     (void) lseek (fd1, (off_t)0, 0);
  238. !     (void) lseek (fd2, (off_t)0, 0);
  239.       return resp;
  240.   }
  241. *** ../mh-6.8.1/sbr/m_getdefs.c    Fri Aug 20 13:08:45 1993
  242. --- sbr/m_getdefs.c    Wed Aug 25 15:57:29 1993
  243. ***************
  244. *** 1,6 ****
  245.   /* m_getdefs.c - read the user's MH environment */
  246.   #ifndef    lint
  247. ! static char ident[] = "@(#)$Id: m_getdefs.c,v 1.6 1992/12/15 00:20:22 jromine Exp $";
  248.   #endif    /* lint */
  249.   
  250.   #include "../h/mh.h"
  251. --- 1,6 ----
  252.   /* m_getdefs.c - read the user's MH environment */
  253.   #ifndef    lint
  254. ! static char ident[] = "@(#)$Id: m_getdefs.c,v 1.7 1993/08/25 17:20:41 jromine Exp $";
  255.   #endif    /* lint */
  256.   
  257.   #include "../h/mh.h"
  258. ***************
  259. *** 27,33 ****
  260.   FILE   *FOpen ();
  261.   int    FClose ();
  262.   
  263. ! long    lseek ();
  264.   #endif    /* OVERHEAD */
  265.   
  266.   
  267. --- 27,33 ----
  268.   FILE   *FOpen ();
  269.   int    FClose ();
  270.   
  271. ! off_t    lseek ();
  272.   #endif    /* OVERHEAD */
  273.   
  274.   
  275. ***************
  276. *** 210,216 ****
  277.       return fp;
  278.       }
  279.   
  280. !     (void) lseek (fd, 0L, 0);
  281.       return fdopen (fd, mode);
  282.   }
  283.   
  284. --- 210,216 ----
  285.       return fp;
  286.       }
  287.   
  288. !     (void) lseek (fd, (off_t)0, 0);
  289.       return fdopen (fd, mode);
  290.   }
  291.   
  292. *** ../mh-6.8.1/support/bboards/mmdfI/bboards/bb_wtmail.c    Fri Aug 20 13:08:38 1993
  293. --- support/bboards/mmdfI/bboards/bb_wtmail.c    Wed Aug 25 15:57:16 1993
  294. ***************
  295. *** 1,4 ****
  296. --- 1,7 ----
  297.   /* bb_wtmail.c - write mail to a BBoard */
  298. + #ifndef    lint
  299. + static char Id[] = "@(#)$Id: bb_wtmail.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
  300. + #endif
  301.   
  302.   #include "util.h"
  303.   #include "mmdf.h"
  304. ***************
  305. *** 37,43 ****
  306.   extern struct ll_struct *logptr;
  307.   
  308.   
  309. ! long    lseek ();
  310.   char   *index (), *rindex (), *sprintf ();
  311.   struct passwd  *getpwnam ();
  312.   
  313. --- 40,46 ----
  314.   extern struct ll_struct *logptr;
  315.   
  316.   
  317. ! off_t    lseek ();
  318.   char   *index (), *rindex (), *sprintf ();
  319.   struct passwd  *getpwnam ();
  320.   
  321. ***************
  322. *** 185,191 ****
  323.       return result;
  324.       }
  325.   
  326. !     pos = lseek (md, 0L, 1);
  327.       count = strlen (delim1);
  328.       if (write (md, delim1, count) != count) {
  329.       ll_log (logptr, LLOGTMP, "error writing delim1");
  330. --- 188,194 ----
  331.       return result;
  332.       }
  333.   
  334. !     pos = (long) lseek (md, (off_t)0, 1);
  335.       count = strlen (delim1);
  336.       if (write (md, delim1, count) != count) {
  337.       ll_log (logptr, LLOGTMP, "error writing delim1");
  338. ***************
  339. *** 192,198 ****
  340.       i = NOTOK;
  341.       goto clean_up;
  342.       }
  343. !     start = lseek (md, 0L, 1);
  344.       size = 0;
  345.   
  346.       count = strlen (bbrdheader);
  347. --- 195,201 ----
  348.       i = NOTOK;
  349.       goto clean_up;
  350.       }
  351. !     start = (long) lseek (md, (off_t)0, 1);
  352.       size = 0;
  353.   
  354.       count = strlen (bbrdheader);
  355. ***************
  356. *** 233,239 ****
  357.   clean_up: ;
  358.       close (qd);
  359.   
  360. !     stop = lseek (md, 0L, 1);
  361.       count = strlen (delim2);
  362.       if (write (md, delim2, count) != count)
  363.       ll_log (logptr, LLOGTMP, "error writing delim2");
  364. --- 236,242 ----
  365.   clean_up: ;
  366.       close (qd);
  367.   
  368. !     stop = (long) lseek (md, (off_t)0, 1);
  369.       count = strlen (delim2);
  370.       if (write (md, delim2, count) != count)
  371.       ll_log (logptr, LLOGTMP, "error writing delim2");
  372. ***************
  373. *** 483,489 ****
  374.       ml_txt (buffer);
  375.   
  376.       if (err_fd != NOTOK) {
  377. !     lseek (err_fd, 0L, 0);
  378.       if ((qp = fdopen (err_fd, "r")) == NULL) {
  379.           ml_txt ("unable to fdopen() for diagnostic copy\n");
  380.           close (err_fd);
  381. --- 486,492 ----
  382.       ml_txt (buffer);
  383.   
  384.       if (err_fd != NOTOK) {
  385. !     lseek (err_fd, (off_t)0, 0);
  386.       if ((qp = fdopen (err_fd, "r")) == NULL) {
  387.           ml_txt ("unable to fdopen() for diagnostic copy\n");
  388.           close (err_fd);
  389. ***************
  390. *** 560,566 ****
  391.       if ((err_fd = open (tmpfil, 2)) == NOTOK)
  392.           return result;
  393.       unlink (tmpfil);
  394. !     lseek (err_fd, 0L, 0);
  395.       }
  396.       i = strlen (buffer);
  397.       write (err_fd, buffer, i);
  398. --- 563,569 ----
  399.       if ((err_fd = open (tmpfil, 2)) == NOTOK)
  400.           return result;
  401.       unlink (tmpfil);
  402. !     lseek (err_fd, (off_t)0, 0);
  403.       }
  404.       i = strlen (buffer);
  405.       write (err_fd, buffer, i);
  406. *** ../mh-6.8.1/support/bboards/mmdfII/bboards/bb_wtmail.c    Fri Aug 20 13:08:35 1993
  407. --- support/bboards/mmdfII/bboards/bb_wtmail.c    Wed Aug 25 15:57:13 1993
  408. ***************
  409. *** 3,8 ****
  410. --- 3,11 ----
  411.   #else    POP
  412.   /* po_wtmail.c - write mail for a POP subscriber */
  413.   #endif    POP
  414. + #ifndef    lint
  415. + static char Id[] = "@(#)$Id: bb_wtmail.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
  416. + #endif
  417.   
  418.   
  419.   #include "util.h"
  420. ***************
  421. *** 69,75 ****
  422.   
  423.   FILE *lk_fopen();
  424.   
  425. ! long    lseek ();
  426.   char   *index (), *rindex (), *sprintf ();
  427.   struct passwd  *getpwnam ();
  428.   
  429. --- 72,78 ----
  430.   
  431.   FILE *lk_fopen();
  432.   
  433. ! off_t    lseek ();
  434.   char   *index (), *rindex (), *sprintf ();
  435.   struct passwd  *getpwnam ();
  436.   
  437. ***************
  438. *** 238,244 ****
  439.       }
  440.   #endif    not POP
  441.   
  442. !     pos = lseek (md, 0L, 1);
  443.       count = strlen (delim1);
  444.       if (write (md, delim1, count) != count) {
  445.       ll_log (logptr, LLOGTMP, "error writing delim1");
  446. --- 241,247 ----
  447.       }
  448.   #endif    not POP
  449.   
  450. !     pos = (long) lseek (md, (off_t)0, 1);
  451.       count = strlen (delim1);
  452.       if (write (md, delim1, count) != count) {
  453.       ll_log (logptr, LLOGTMP, "error writing delim1");
  454. ***************
  455. *** 245,251 ****
  456.       result = NOTOK;
  457.       goto clean_up;
  458.       }
  459. !     start = lseek (md, 0L, 1);
  460.       size = 0;
  461.   
  462.   #ifndef    POP
  463. --- 248,254 ----
  464.       result = NOTOK;
  465.       goto clean_up;
  466.       }
  467. !     start = (long) lseek (md, (off_t)0, 1);
  468.       size = 0;
  469.   
  470.   #ifndef    POP
  471. ***************
  472. *** 287,293 ****
  473.           qu_msgfile);
  474.   clean_up: ;
  475.   
  476. !     stop = lseek (md, 0L, 1);
  477.       count = strlen (delim2);
  478.       if (write (md, delim2, count) != count)
  479.       ll_log (logptr, LLOGTMP, "error writing delim2");
  480. --- 290,296 ----
  481.           qu_msgfile);
  482.   clean_up: ;
  483.   
  484. !     stop = (long) lseek (md, (off_t)0, 1);
  485.       count = strlen (delim2);
  486.       if (write (md, delim2, count) != count)
  487.       ll_log (logptr, LLOGTMP, "error writing delim2");
  488. ***************
  489. *** 555,561 ****
  490.       printx ("unable to post advisory.\n");
  491.       ll_log (logptr, LLOGFAT, "unable to post failure notice");
  492.       if (err_fd != NOTOK) {
  493. !         (void) lseek (err_fd, 0L, 0);
  494.           if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  495.           buffer[i] = NULL;
  496.           if (cp = index (buffer, '\n'))
  497. --- 558,564 ----
  498.       printx ("unable to post advisory.\n");
  499.       ll_log (logptr, LLOGFAT, "unable to post failure notice");
  500.       if (err_fd != NOTOK) {
  501. !         (void) lseek (err_fd, (off_t)0, 0);
  502.           if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  503.           buffer[i] = NULL;
  504.           if (cp = index (buffer, '\n'))
  505. ***************
  506. *** 599,605 ****
  507.   
  508.       ml_txt (intro);
  509.       if (err_fd != NOTOK) {
  510. !     lseek (err_fd, 0L, 0);
  511.       while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  512.           buffer[i] = NULL;
  513.           ml_txt (buffer);
  514. --- 602,608 ----
  515.   
  516.       ml_txt (intro);
  517.       if (err_fd != NOTOK) {
  518. !     lseek (err_fd, (off_t)0, 0);
  519.       while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  520.           buffer[i] = NULL;
  521.           ml_txt (buffer);
  522. ***************
  523. *** 717,723 ****
  524.       if ((err_fd = open (tmpfil, 2)) == NOTOK)
  525.           return result;
  526.       unlink (tmpfil);
  527. !     lseek (err_fd, 0L, 0);
  528.       }
  529.       i = strlen (buffer);
  530.       write (err_fd, buffer, i);
  531. --- 720,726 ----
  532.       if ((err_fd = open (tmpfil, 2)) == NOTOK)
  533.           return result;
  534.       unlink (tmpfil);
  535. !     lseek (err_fd, (off_t)0, 0);
  536.       }
  537.       i = strlen (buffer);
  538.       write (err_fd, buffer, i);
  539. *** ../mh-6.8.1/support/bboards/mmdfII/bboards/dropsbr.c    Fri Aug 20 13:08:34 1993
  540. --- support/bboards/mmdfII/bboards/dropsbr.c    Wed Aug 25 15:57:12 1993
  541. ***************
  542. *** 1,4 ****
  543. --- 1,7 ----
  544.   /* dropsbr.c - write to a mailbox */
  545. + #ifndef    lint
  546. + static char Id[] = "@(#)$Id: dropsbr.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
  547. + #endif
  548.   
  549.   #include <stdio.h>
  550.   #ifndef    MMDFONLY
  551. ***************
  552. *** 25,31 ****
  553.   
  554.   extern int  errno;
  555.   
  556. ! long   lseek ();
  557.   
  558.   /*   */
  559.   
  560. --- 28,34 ----
  561.   
  562.   extern int  errno;
  563.   
  564. ! off_t   lseek ();
  565.   
  566.   /*   */
  567.   
  568. ***************
  569. *** 69,75 ****
  570.           break;
  571.   
  572.           case UUCP: 
  573. !         if (lseek (fd, 0L, 2) == (long) NOTOK) {
  574.               (void) close (fd);
  575.               return NOTOK;
  576.           }
  577. --- 72,78 ----
  578.           break;
  579.   
  580.           case UUCP: 
  581. !         if (lseek (fd, (off_t)0, 2) == (off_t) NOTOK) {
  582.               (void) close (fd);
  583.               return NOTOK;
  584.           }
  585. ***************
  586. *** 151,157 ****
  587.   
  588.       count = strlen (mmdlm2);
  589.   
  590. !     if (lseek (fd, (long) (-count), 2) == (long) NOTOK
  591.           || read (fd, ldelim, count) != count)
  592.       return NOTOK;
  593.       ldelim[count] = NULL;
  594. --- 154,160 ----
  595.   
  596.       count = strlen (mmdlm2);
  597.   
  598. !     if (lseek (fd, (off_t) (-count), 2) == (off_t) NOTOK
  599.           || read (fd, ldelim, count) != count)
  600.       return NOTOK;
  601.       ldelim[count] = NULL;
  602. ***************
  603. *** 266,276 ****
  604.       register char  *cp;
  605.       char    buffer[BUFSIZ];
  606.   
  607. !     off = lseek (md, 0L, 1);
  608.       j = strlen (mmdlm1);
  609.       if (write (md, mmdlm1, j) != j)
  610.       return NOTOK;
  611. !     start = lseek (md, 0L, 1);
  612.       size = 0;
  613.   
  614.       (void) fseek (fp, pos, 0);
  615. --- 269,279 ----
  616.       register char  *cp;
  617.       char    buffer[BUFSIZ];
  618.   
  619. !     off = (long) lseek (md, (off_t)0, 1);
  620.       j = strlen (mmdlm1);
  621.       if (write (md, mmdlm1, j) != j)
  622.       return NOTOK;
  623. !     start = (long) lseek (md, (off_t)0, 1);
  624.       size = 0;
  625.   
  626.       (void) fseek (fp, pos, 0);
  627. ***************
  628. *** 289,295 ****
  629.               size++;
  630.       }
  631.   
  632. !     stop = lseek (md, 0L, 1);
  633.       j = strlen (mmdlm2);
  634.       if (write (md, mmdlm2, j) != j)
  635.       return NOTOK;
  636. --- 292,298 ----
  637.               size++;
  638.       }
  639.   
  640. !     stop = (long) lseek (md, (off_t)0, 1);
  641.       j = strlen (mmdlm2);
  642.       if (write (md, mmdlm2, j) != j)
  643.       return NOTOK;
  644. ***************
  645. *** 319,325 ****
  646.       char    buffer[BUFSIZ];
  647.       register FILE  *fp;
  648.   
  649. !     pos = lseek (md, 0L, 1);
  650.       size = 0;
  651.   
  652.       switch (mbx_style) {
  653. --- 322,328 ----
  654.       char    buffer[BUFSIZ];
  655.       register FILE  *fp;
  656.   
  657. !     pos = (long) lseek (md, (off_t)0, 1);
  658.       size = 0;
  659.   
  660.       switch (mbx_style) {
  661. ***************
  662. *** 328,334 ****
  663.           j = strlen (mmdlm1);
  664.           if (write (md, mmdlm1, j) != j)
  665.           return NOTOK;
  666. !         start = lseek (md, 0L, 1);
  667.   
  668.           if (text) {
  669.           i = strlen (text);
  670. --- 331,337 ----
  671.           j = strlen (mmdlm1);
  672.           if (write (md, mmdlm1, j) != j)
  673.           return NOTOK;
  674. !         start = (long) lseek (md, (off_t)0, 1);
  675.   
  676.           if (text) {
  677.           i = strlen (text);
  678. ***************
  679. *** 356,362 ****
  680.                   size++;
  681.           }
  682.   
  683. !         stop = lseek (md, 0L, 1);
  684.           j = strlen (mmdlm2);
  685.           if (write (md, mmdlm2, j) != j)
  686.           return NOTOK;
  687. --- 359,365 ----
  688.                   size++;
  689.           }
  690.   
  691. !         stop = (long) lseek (md, (off_t)0, 1);
  692.           j = strlen (mmdlm2);
  693.           if (write (md, mmdlm2, j) != j)
  694.           return NOTOK;
  695. ***************
  696. *** 373,379 ****
  697.           (void) close (j);
  698.           return NOTOK;
  699.           }
  700. !         start = lseek (md, 0L, 1);
  701.   
  702.           if (text) {
  703.           i = strlen (text);
  704. --- 376,382 ----
  705.           (void) close (j);
  706.           return NOTOK;
  707.           }
  708. !         start = (long) lseek (md, (off_t)0, 1);
  709.   
  710.           if (text) {
  711.           i = strlen (text);
  712. ***************
  713. *** 401,408 ****
  714.           }
  715.   
  716.           (void) fclose (fp);
  717. !         (void) lseek (fd, 0L, 2);
  718. !         stop = lseek (md, 0L, 1);
  719.           if (mapping)
  720.           (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
  721.                   noisy);
  722. --- 404,411 ----
  723.           }
  724.   
  725.           (void) fclose (fp);
  726. !         (void) lseek (fd, (off_t)0, 2);
  727. !         stop = (long) lseek (md, (off_t)0, 1);
  728.           if (mapping)
  729.           (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
  730.                   noisy);
  731. ***************
  732. *** 507,513 ****
  733.   
  734.       bcopy ((char *) mp, (char *) dp, sizeof *dp);
  735.   
  736. !     (void) lseek (md, (long) sizeof *mp, 0);
  737.       if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
  738.       i = 0;
  739.       free ((char *) dp);
  740. --- 510,516 ----
  741.   
  742.       bcopy ((char *) mp, (char *) dp, sizeof *dp);
  743.   
  744. !     (void) lseek (md, (off_t) sizeof *mp, 0);
  745.       if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
  746.       i = 0;
  747.       free ((char *) dp);
  748. ***************
  749. *** 579,585 ****
  750.           for (dp = rp; i-- >0; dp++) {
  751.               if (dp -> d_start == start)
  752.               dp -> d_id = id;
  753. !             (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
  754.               if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  755.               if (noisy)
  756.                   admonish (file, "write error");
  757. --- 582,588 ----
  758.           for (dp = rp; i-- >0; dp++) {
  759.               if (dp -> d_start == start)
  760.               dp -> d_id = id;
  761. !             (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
  762.               if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  763.               if (noisy)
  764.                   admonish (file, "write error");
  765. ***************
  766. *** 600,606 ****
  767.       dp -> d_size = size ? size : mbx_size (fd, start, stop);
  768.       dp -> d_start = start;
  769.       dp -> d_stop = stop;
  770. !     (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
  771.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  772.           if (noisy)
  773.           admonish (file, "write error");
  774. --- 603,609 ----
  775.       dp -> d_size = size ? size : mbx_size (fd, start, stop);
  776.       dp -> d_start = start;
  777.       dp -> d_stop = stop;
  778. !     (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
  779.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  780.           if (noisy)
  781.           admonish (file, "write error");
  782. ***************
  783. *** 612,620 ****
  784.       dp = &d1;
  785.       dp -> d_size = DRVRSN;
  786.       dp -> d_start = last;
  787. !     dp -> d_stop = lseek (md, 0L, 1);
  788.   
  789. !     (void) lseek (fd, 0L, 0);
  790.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  791.       if (noisy)
  792.           admonish (file, "write error");
  793. --- 615,623 ----
  794.       dp = &d1;
  795.       dp -> d_size = DRVRSN;
  796.       dp -> d_start = last;
  797. !     dp -> d_stop = (long) lseek (md, (off_t)0, 1);
  798.   
  799. !     (void) lseek (fd, (off_t)0, 0);
  800.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  801.       if (noisy)
  802.           admonish (file, "write error");
  803. ***************
  804. *** 675,681 ****
  805.       return NOTOK;
  806.       }
  807.   
  808. !     if ((long) ((dp -> d_id + 1) * sizeof *dp) != lseek (fd, 0L, 2)) {
  809.       if (noisy)
  810.           admonish (NULLCP, "%s: corrupt index(1)", file);
  811.       return NOTOK;
  812. --- 678,684 ----
  813.       return NOTOK;
  814.       }
  815.   
  816. !     if ((long) ((dp -> d_id + 1) * sizeof *dp) != (long) lseek (fd, (off_t)0, 2)) {
  817.       if (noisy)
  818.           admonish (NULLCP, "%s: corrupt index(1)", file);
  819.       return NOTOK;
  820. ***************
  821. *** 683,689 ****
  822.   
  823.       dl = &d;
  824.       count = (long) strlen (mmdlm2);
  825. !     (void) lseek (fd, (long) (dp -> d_id * sizeof *dp), 0);
  826.       if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
  827.           || (dl -> d_stop != dp -> d_stop
  828.           && dl -> d_stop + count != dp -> d_stop)) {
  829. --- 686,692 ----
  830.   
  831.       dl = &d;
  832.       count = (long) strlen (mmdlm2);
  833. !     (void) lseek (fd, (off_t) (dp -> d_id * sizeof *dp), 0);
  834.       if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
  835.           || (dl -> d_stop != dp -> d_stop
  836.           && dl -> d_stop + count != dp -> d_stop)) {
  837. *** ../mh-6.8.1/support/bboards/mmdfII/bboards/lock.c    Fri Aug 20 13:07:43 1993
  838. --- support/bboards/mmdfII/bboards/lock.c    Wed Aug 25 15:56:16 1993
  839. ***************
  840. *** 1,6 ****
  841.   /* lock.c - universal locking routines */
  842.   #ifndef    lint
  843. ! static char ident[] = "@(#)$Id: lock.c,v 2.18 1992/11/12 23:26:49 jromine Exp $";
  844.   #endif
  845.   /* compile-time priority:
  846.    *    LOCKF    use if defined
  847. --- 1,6 ----
  848.   /* lock.c - universal locking routines */
  849.   #ifndef    lint
  850. ! static char ident[] = "@(#)$Id: lock.c,v 2.19 1993/08/25 17:33:09 jromine Exp $";
  851.   #endif
  852.   /* compile-time priority:
  853.    *    LOCKF    use if defined
  854. ***************
  855. *** 265,273 ****
  856.           /* see if we should be at the end */
  857.           if (j & O_APPEND)
  858.   #ifdef SVR4
  859. !         lseek (fd, 0L, SEEK_END);
  860.   #else
  861. !         lseek (fd, 0L, L_XTND);
  862.   #endif
  863.           return fd;
  864.       }
  865. --- 265,273 ----
  866.           /* see if we should be at the end */
  867.           if (j & O_APPEND)
  868.   #ifdef SVR4
  869. !         lseek (fd, (off_t)0, SEEK_END);
  870.   #else
  871. !         lseek (fd, (off_t)0, L_XTND);
  872.   #endif
  873.           return fd;
  874.       }
  875. ***************
  876. *** 322,328 ****
  877.           break;
  878.   #endif
  879.   #else    /* LOCKF */
  880. !         lseek (fd, 0L, L_SET); /* make sure we unlock the whole thing */
  881.           lockf (fd, F_ULOCK, 0L);
  882.           break;
  883.   #endif    
  884. --- 322,328 ----
  885.           break;
  886.   #endif
  887.   #else    /* LOCKF */
  888. !         lseek (fd, (off_t)0, L_SET); /* make sure we unlock the whole thing */
  889.           lockf (fd, F_ULOCK, 0L);
  890.           break;
  891.   #endif    
  892. *** ../mh-6.8.1/support/pop/mmdfII/pop/dropsbr.c    Fri Aug 20 13:08:25 1993
  893. --- support/pop/mmdfII/pop/dropsbr.c    Wed Aug 25 15:56:59 1993
  894. ***************
  895. *** 1,4 ****
  896. --- 1,7 ----
  897.   /* dropsbr.c - write to a mailbox */
  898. + #ifndef    lint
  899. + static char Id[] = "@(#)$Id: dropsbr.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
  900. + #endif
  901.   
  902.   #include <stdio.h>
  903.   #ifndef    MMDFONLY
  904. ***************
  905. *** 25,31 ****
  906.   
  907.   extern int  errno;
  908.   
  909. ! long   lseek ();
  910.   
  911.   /*   */
  912.   
  913. --- 28,34 ----
  914.   
  915.   extern int  errno;
  916.   
  917. ! off_t   lseek ();
  918.   
  919.   /*   */
  920.   
  921. ***************
  922. *** 69,75 ****
  923.           break;
  924.   
  925.           case UUCP: 
  926. !         if (lseek (fd, 0L, 2) == (long) NOTOK) {
  927.               (void) close (fd);
  928.               return NOTOK;
  929.           }
  930. --- 72,78 ----
  931.           break;
  932.   
  933.           case UUCP: 
  934. !         if (lseek (fd, (off_t)0, 2) == (off_t) NOTOK) {
  935.               (void) close (fd);
  936.               return NOTOK;
  937.           }
  938. ***************
  939. *** 151,157 ****
  940.   
  941.       count = strlen (mmdlm2);
  942.   
  943. !     if (lseek (fd, (long) (-count), 2) == (long) NOTOK
  944.           || read (fd, ldelim, count) != count)
  945.       return NOTOK;
  946.       ldelim[count] = NULL;
  947. --- 154,160 ----
  948.   
  949.       count = strlen (mmdlm2);
  950.   
  951. !     if (lseek (fd, (off_t) (-count), 2) == (off_t) NOTOK
  952.           || read (fd, ldelim, count) != count)
  953.       return NOTOK;
  954.       ldelim[count] = NULL;
  955. ***************
  956. *** 266,276 ****
  957.       register char  *cp;
  958.       char    buffer[BUFSIZ];
  959.   
  960. !     off = lseek (md, 0L, 1);
  961.       j = strlen (mmdlm1);
  962.       if (write (md, mmdlm1, j) != j)
  963.       return NOTOK;
  964. !     start = lseek (md, 0L, 1);
  965.       size = 0;
  966.   
  967.       (void) fseek (fp, pos, 0);
  968. --- 269,279 ----
  969.       register char  *cp;
  970.       char    buffer[BUFSIZ];
  971.   
  972. !     off = (long) lseek (md, (off_t)0, 1);
  973.       j = strlen (mmdlm1);
  974.       if (write (md, mmdlm1, j) != j)
  975.       return NOTOK;
  976. !     start = (long) lseek (md, (off_t)0, 1);
  977.       size = 0;
  978.   
  979.       (void) fseek (fp, pos, 0);
  980. ***************
  981. *** 289,295 ****
  982.               size++;
  983.       }
  984.   
  985. !     stop = lseek (md, 0L, 1);
  986.       j = strlen (mmdlm2);
  987.       if (write (md, mmdlm2, j) != j)
  988.       return NOTOK;
  989. --- 292,298 ----
  990.               size++;
  991.       }
  992.   
  993. !     stop = (long) lseek (md, (off_t)0, 1);
  994.       j = strlen (mmdlm2);
  995.       if (write (md, mmdlm2, j) != j)
  996.       return NOTOK;
  997. ***************
  998. *** 319,325 ****
  999.       char    buffer[BUFSIZ];
  1000.       register FILE  *fp;
  1001.   
  1002. !     pos = lseek (md, 0L, 1);
  1003.       size = 0;
  1004.   
  1005.       switch (mbx_style) {
  1006. --- 322,328 ----
  1007.       char    buffer[BUFSIZ];
  1008.       register FILE  *fp;
  1009.   
  1010. !     pos = (long) lseek (md, (off_t)0, 1);
  1011.       size = 0;
  1012.   
  1013.       switch (mbx_style) {
  1014. ***************
  1015. *** 328,334 ****
  1016.           j = strlen (mmdlm1);
  1017.           if (write (md, mmdlm1, j) != j)
  1018.           return NOTOK;
  1019. !         start = lseek (md, 0L, 1);
  1020.   
  1021.           if (text) {
  1022.           i = strlen (text);
  1023. --- 331,337 ----
  1024.           j = strlen (mmdlm1);
  1025.           if (write (md, mmdlm1, j) != j)
  1026.           return NOTOK;
  1027. !         start = (long) lseek (md, (off_t)0, 1);
  1028.   
  1029.           if (text) {
  1030.           i = strlen (text);
  1031. ***************
  1032. *** 356,362 ****
  1033.                   size++;
  1034.           }
  1035.   
  1036. !         stop = lseek (md, 0L, 1);
  1037.           j = strlen (mmdlm2);
  1038.           if (write (md, mmdlm2, j) != j)
  1039.           return NOTOK;
  1040. --- 359,365 ----
  1041.                   size++;
  1042.           }
  1043.   
  1044. !         stop = (long) lseek (md, (off_t)0, 1);
  1045.           j = strlen (mmdlm2);
  1046.           if (write (md, mmdlm2, j) != j)
  1047.           return NOTOK;
  1048. ***************
  1049. *** 373,379 ****
  1050.           (void) close (j);
  1051.           return NOTOK;
  1052.           }
  1053. !         start = lseek (md, 0L, 1);
  1054.   
  1055.           if (text) {
  1056.           i = strlen (text);
  1057. --- 376,382 ----
  1058.           (void) close (j);
  1059.           return NOTOK;
  1060.           }
  1061. !         start = (long) lseek (md, (off_t)0, 1);
  1062.   
  1063.           if (text) {
  1064.           i = strlen (text);
  1065. ***************
  1066. *** 401,408 ****
  1067.           }
  1068.   
  1069.           (void) fclose (fp);
  1070. !         (void) lseek (fd, 0L, 2);
  1071. !         stop = lseek (md, 0L, 1);
  1072.           if (mapping)
  1073.           (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
  1074.                   noisy);
  1075. --- 404,411 ----
  1076.           }
  1077.   
  1078.           (void) fclose (fp);
  1079. !         (void) lseek (fd, (off_t)0, 2);
  1080. !         stop = (long) lseek (md, (off_t)0, 1);
  1081.           if (mapping)
  1082.           (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
  1083.                   noisy);
  1084. ***************
  1085. *** 507,513 ****
  1086.   
  1087.       bcopy ((char *) mp, (char *) dp, sizeof *dp);
  1088.   
  1089. !     (void) lseek (md, (long) sizeof *mp, 0);
  1090.       if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
  1091.       i = 0;
  1092.       free ((char *) dp);
  1093. --- 510,516 ----
  1094.   
  1095.       bcopy ((char *) mp, (char *) dp, sizeof *dp);
  1096.   
  1097. !     (void) lseek (md, (off_t) sizeof *mp, 0);
  1098.       if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
  1099.       i = 0;
  1100.       free ((char *) dp);
  1101. ***************
  1102. *** 579,585 ****
  1103.           for (dp = rp; i-- >0; dp++) {
  1104.               if (dp -> d_start == start)
  1105.               dp -> d_id = id;
  1106. !             (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
  1107.               if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  1108.               if (noisy)
  1109.                   admonish (file, "write error");
  1110. --- 582,588 ----
  1111.           for (dp = rp; i-- >0; dp++) {
  1112.               if (dp -> d_start == start)
  1113.               dp -> d_id = id;
  1114. !             (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
  1115.               if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  1116.               if (noisy)
  1117.                   admonish (file, "write error");
  1118. ***************
  1119. *** 600,606 ****
  1120.       dp -> d_size = size ? size : mbx_size (fd, start, stop);
  1121.       dp -> d_start = start;
  1122.       dp -> d_stop = stop;
  1123. !     (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
  1124.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  1125.           if (noisy)
  1126.           admonish (file, "write error");
  1127. --- 603,609 ----
  1128.       dp -> d_size = size ? size : mbx_size (fd, start, stop);
  1129.       dp -> d_start = start;
  1130.       dp -> d_stop = stop;
  1131. !     (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
  1132.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  1133.           if (noisy)
  1134.           admonish (file, "write error");
  1135. ***************
  1136. *** 612,620 ****
  1137.       dp = &d1;
  1138.       dp -> d_size = DRVRSN;
  1139.       dp -> d_start = last;
  1140. !     dp -> d_stop = lseek (md, 0L, 1);
  1141.   
  1142. !     (void) lseek (fd, 0L, 0);
  1143.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  1144.       if (noisy)
  1145.           admonish (file, "write error");
  1146. --- 615,623 ----
  1147.       dp = &d1;
  1148.       dp -> d_size = DRVRSN;
  1149.       dp -> d_start = last;
  1150. !     dp -> d_stop = (long) lseek (md, (off_t)0, 1);
  1151.   
  1152. !     (void) lseek (fd, (off_t)0, 0);
  1153.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  1154.       if (noisy)
  1155.           admonish (file, "write error");
  1156. ***************
  1157. *** 675,681 ****
  1158.       return NOTOK;
  1159.       }
  1160.   
  1161. !     if ((long) ((dp -> d_id + 1) * sizeof *dp) != lseek (fd, 0L, 2)) {
  1162.       if (noisy)
  1163.           admonish (NULLCP, "%s: corrupt index(1)", file);
  1164.       return NOTOK;
  1165. --- 678,684 ----
  1166.       return NOTOK;
  1167.       }
  1168.   
  1169. !     if ((long) ((dp -> d_id + 1) * sizeof *dp) != (long) lseek (fd, (off_t)0, 2)) {
  1170.       if (noisy)
  1171.           admonish (NULLCP, "%s: corrupt index(1)", file);
  1172.       return NOTOK;
  1173. ***************
  1174. *** 683,689 ****
  1175.   
  1176.       dl = &d;
  1177.       count = (long) strlen (mmdlm2);
  1178. !     (void) lseek (fd, (long) (dp -> d_id * sizeof *dp), 0);
  1179.       if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
  1180.           || (dl -> d_stop != dp -> d_stop
  1181.           && dl -> d_stop + count != dp -> d_stop)) {
  1182. --- 686,692 ----
  1183.   
  1184.       dl = &d;
  1185.       count = (long) strlen (mmdlm2);
  1186. !     (void) lseek (fd, (off_t) (dp -> d_id * sizeof *dp), 0);
  1187.       if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
  1188.           || (dl -> d_stop != dp -> d_stop
  1189.           && dl -> d_stop + count != dp -> d_stop)) {
  1190. *** ../mh-6.8.1/support/pop/mmdfII/pop/lock.c    Fri Aug 20 13:07:43 1993
  1191. --- support/pop/mmdfII/pop/lock.c    Wed Aug 25 15:56:16 1993
  1192. ***************
  1193. *** 1,6 ****
  1194.   /* lock.c - universal locking routines */
  1195.   #ifndef    lint
  1196. ! static char ident[] = "@(#)$Id: lock.c,v 2.18 1992/11/12 23:26:49 jromine Exp $";
  1197.   #endif
  1198.   /* compile-time priority:
  1199.    *    LOCKF    use if defined
  1200. --- 1,6 ----
  1201.   /* lock.c - universal locking routines */
  1202.   #ifndef    lint
  1203. ! static char ident[] = "@(#)$Id: lock.c,v 2.19 1993/08/25 17:33:09 jromine Exp $";
  1204.   #endif
  1205.   /* compile-time priority:
  1206.    *    LOCKF    use if defined
  1207. ***************
  1208. *** 265,273 ****
  1209.           /* see if we should be at the end */
  1210.           if (j & O_APPEND)
  1211.   #ifdef SVR4
  1212. !         lseek (fd, 0L, SEEK_END);
  1213.   #else
  1214. !         lseek (fd, 0L, L_XTND);
  1215.   #endif
  1216.           return fd;
  1217.       }
  1218. --- 265,273 ----
  1219.           /* see if we should be at the end */
  1220.           if (j & O_APPEND)
  1221.   #ifdef SVR4
  1222. !         lseek (fd, (off_t)0, SEEK_END);
  1223.   #else
  1224. !         lseek (fd, (off_t)0, L_XTND);
  1225.   #endif
  1226.           return fd;
  1227.       }
  1228. ***************
  1229. *** 322,328 ****
  1230.           break;
  1231.   #endif
  1232.   #else    /* LOCKF */
  1233. !         lseek (fd, 0L, L_SET); /* make sure we unlock the whole thing */
  1234.           lockf (fd, F_ULOCK, 0L);
  1235.           break;
  1236.   #endif    
  1237. --- 322,328 ----
  1238.           break;
  1239.   #endif
  1240.   #else    /* LOCKF */
  1241. !         lseek (fd, (off_t)0, L_SET); /* make sure we unlock the whole thing */
  1242.           lockf (fd, F_ULOCK, 0L);
  1243.           break;
  1244.   #endif    
  1245. *** ../mh-6.8.1/support/pop/mmdfII/pop/po_wtmail.c    Fri Aug 20 13:08:24 1993
  1246. --- support/pop/mmdfII/pop/po_wtmail.c    Wed Aug 25 15:56:57 1993
  1247. ***************
  1248. *** 3,8 ****
  1249. --- 3,11 ----
  1250.   #else    POP
  1251.   /* po_wtmail.c - write mail for a POP subscriber */
  1252.   #endif    POP
  1253. + #ifndef    lint
  1254. + static char Id[] = "@(#)$Id: po_wtmail.c,v 1.3 1993/08/25 17:43:26 jromine Exp $";
  1255. + #endif
  1256.   
  1257.   
  1258.   #include "util.h"
  1259. ***************
  1260. *** 69,75 ****
  1261.   
  1262.   FILE *lk_fopen();
  1263.   
  1264. ! long    lseek ();
  1265.   char   *index (), *rindex (), *sprintf ();
  1266.   struct passwd  *getpwnam ();
  1267.   
  1268. --- 72,78 ----
  1269.   
  1270.   FILE *lk_fopen();
  1271.   
  1272. ! off_t    lseek ();
  1273.   char   *index (), *rindex (), *sprintf ();
  1274.   struct passwd  *getpwnam ();
  1275.   
  1276. ***************
  1277. *** 238,244 ****
  1278.       }
  1279.   #endif    not POP
  1280.   
  1281. !     pos = lseek (md, 0L, 1);
  1282.       count = strlen (delim1);
  1283.       if (write (md, delim1, count) != count) {
  1284.       ll_log (logptr, LLOGTMP, "error writing delim1");
  1285. --- 241,247 ----
  1286.       }
  1287.   #endif    not POP
  1288.   
  1289. !     pos = (long) lseek (md, (off_t)0, 1);
  1290.       count = strlen (delim1);
  1291.       if (write (md, delim1, count) != count) {
  1292.       ll_log (logptr, LLOGTMP, "error writing delim1");
  1293. ***************
  1294. *** 245,251 ****
  1295.       result = NOTOK;
  1296.       goto clean_up;
  1297.       }
  1298. !     start = lseek (md, 0L, 1);
  1299.       size = 0;
  1300.   
  1301.   #ifndef    POP
  1302. --- 248,254 ----
  1303.       result = NOTOK;
  1304.       goto clean_up;
  1305.       }
  1306. !     start = (long) lseek (md, (off_t)0, 1);
  1307.       size = 0;
  1308.   
  1309.   #ifndef    POP
  1310. ***************
  1311. *** 287,293 ****
  1312.           qu_msgfile);
  1313.   clean_up: ;
  1314.   
  1315. !     stop = lseek (md, 0L, 1);
  1316.       count = strlen (delim2);
  1317.       if (write (md, delim2, count) != count)
  1318.       ll_log (logptr, LLOGTMP, "error writing delim2");
  1319. --- 290,296 ----
  1320.           qu_msgfile);
  1321.   clean_up: ;
  1322.   
  1323. !     stop = (long) lseek (md, (off_t)0, 1);
  1324.       count = strlen (delim2);
  1325.       if (write (md, delim2, count) != count)
  1326.       ll_log (logptr, LLOGTMP, "error writing delim2");
  1327. ***************
  1328. *** 555,561 ****
  1329.       printx ("unable to post advisory.\n");
  1330.       ll_log (logptr, LLOGFAT, "unable to post failure notice");
  1331.       if (err_fd != NOTOK) {
  1332. !         (void) lseek (err_fd, 0L, 0);
  1333.           if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  1334.           buffer[i] = NULL;
  1335.           if (cp = index (buffer, '\n'))
  1336. --- 558,564 ----
  1337.       printx ("unable to post advisory.\n");
  1338.       ll_log (logptr, LLOGFAT, "unable to post failure notice");
  1339.       if (err_fd != NOTOK) {
  1340. !         (void) lseek (err_fd, (off_t)0, 0);
  1341.           if ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  1342.           buffer[i] = NULL;
  1343.           if (cp = index (buffer, '\n'))
  1344. ***************
  1345. *** 599,605 ****
  1346.   
  1347.       ml_txt (intro);
  1348.       if (err_fd != NOTOK) {
  1349. !     lseek (err_fd, 0L, 0);
  1350.       while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  1351.           buffer[i] = NULL;
  1352.           ml_txt (buffer);
  1353. --- 602,608 ----
  1354.   
  1355.       ml_txt (intro);
  1356.       if (err_fd != NOTOK) {
  1357. !     lseek (err_fd, (off_t)0, 0);
  1358.       while ((i = read (err_fd, buffer, sizeof buffer)) > 0) {
  1359.           buffer[i] = NULL;
  1360.           ml_txt (buffer);
  1361. ***************
  1362. *** 717,723 ****
  1363.       if ((err_fd = open (tmpfil, 2)) == NOTOK)
  1364.           return result;
  1365.       unlink (tmpfil);
  1366. !     lseek (err_fd, 0L, 0);
  1367.       }
  1368.       i = strlen (buffer);
  1369.       write (err_fd, buffer, i);
  1370. --- 720,726 ----
  1371.       if ((err_fd = open (tmpfil, 2)) == NOTOK)
  1372.           return result;
  1373.       unlink (tmpfil);
  1374. !     lseek (err_fd, (off_t)0, 0);
  1375.       }
  1376.       i = strlen (buffer);
  1377.       write (err_fd, buffer, i);
  1378. *** ../mh-6.8.1/support/pop/popd.c    Fri Aug 20 13:08:19 1993
  1379. --- support/pop/popd.c    Wed Aug 25 15:56:52 1993
  1380. ***************
  1381. *** 1,6 ****
  1382.   /* popd.c - the POP server */
  1383.   #ifndef    lint
  1384. ! static char ident[] = "@(#)$Id: popd.c,v 1.15 1993/02/26 22:11:12 jromine Exp $";
  1385.   #endif    /* lint */
  1386.   
  1387.   /* Author:    Marshall T. Rose    <MRose@UDel>    (MTR)
  1388. --- 1,6 ----
  1389.   /* popd.c - the POP server */
  1390.   #ifndef    lint
  1391. ! static char ident[] = "@(#)$Id: popd.c,v 1.16 1993/08/25 17:23:05 jromine Exp $";
  1392.   #endif    /* lint */
  1393.   
  1394.   /* Author:    Marshall T. Rose    <MRose@UDel>    (MTR)
  1395. ***************
  1396. *** 58,66 ****
  1397.   /*   */
  1398.   
  1399.   extern int  errno;
  1400.   extern int  sys_nerr;
  1401.   extern char *sys_errlist[];
  1402. - #ifndef    BSD44        /* const */
  1403.   extern char *sys_siglist[];
  1404.   #endif
  1405.   
  1406. --- 58,66 ----
  1407.   /*   */
  1408.   
  1409.   extern int  errno;
  1410. + #ifndef    BSD44
  1411.   extern int  sys_nerr;
  1412.   extern char *sys_errlist[];
  1413.   extern char *sys_siglist[];
  1414.   #endif
  1415.   
  1416. *** ../mh-6.8.1/support/pop/popser.c    Fri Aug 20 13:08:19 1993
  1417. --- support/pop/popser.c    Wed Aug 25 15:56:52 1993
  1418. ***************
  1419. *** 1,6 ****
  1420.   /* popser.c - the POP service */
  1421.   #ifndef    lint
  1422. ! static char ident[]="@(#)$Id: popser.c,v 1.30 1992/12/16 22:31:20 jromine Exp $";
  1423.   #endif
  1424.   
  1425.   #include "../h/mh.h"
  1426. --- 1,6 ----
  1427.   /* popser.c - the POP service */
  1428.   #ifndef    lint
  1429. ! static char ident[]="@(#)$Id: popser.c,v 1.31 1993/08/25 17:23:14 jromine Exp $";
  1430.   #endif
  1431.   
  1432.   #include "../h/mh.h"
  1433. ***************
  1434. *** 227,233 ****
  1435.   #endif
  1436.   
  1437.   void    padvise (), padios ();
  1438. - long    lseek ();
  1439.   char   *crypt ();
  1440.   
  1441.   #ifdef    POPUUMBOX
  1442. --- 227,232 ----
  1443. *** ../mh-6.8.1/support/pop/syslog.c    Fri Aug 20 13:08:20 1993
  1444. --- support/pop/syslog.c    Wed Aug 25 15:56:53 1993
  1445. ***************
  1446. *** 3,9 ****
  1447.   static char SccsId[] =    "@(#)syslog.c    4.1 (Berkeley) 5/27/83";
  1448.   #endif
  1449.   #ifndef    lint
  1450. ! static char ident[] = "@(#)$Id: syslog.c,v 1.8 1992/12/15 00:20:22 jromine Exp jromine $";
  1451.   #endif    /* lint */
  1452.   
  1453.   /*
  1454. --- 3,9 ----
  1455.   static char SccsId[] =    "@(#)syslog.c    4.1 (Berkeley) 5/27/83";
  1456.   #endif
  1457.   #ifndef    lint
  1458. ! static char ident[] = "@(#)$Id: syslog.c,v 1.9 1993/08/25 17:23:42 jromine Exp $";
  1459.   #endif    /* lint */
  1460.   
  1461.   /*
  1462. ***************
  1463. *** 46,53 ****
  1464.   struct sockaddr_in SyslogAddr;
  1465.   static char *SyslogHost = LOG_HOST;
  1466.   
  1467. ! extern    int errno, sys_nerr;
  1468.   extern    char *sys_errlist[];
  1469.   
  1470.   syslog(pri, fmt, p0, p1, p2, p3, p4)
  1471.       int pri;
  1472. --- 46,56 ----
  1473.   struct sockaddr_in SyslogAddr;
  1474.   static char *SyslogHost = LOG_HOST;
  1475.   
  1476. ! extern    int errno;
  1477. ! #ifndef    BSD44
  1478. ! extern    int    sys_nerr;
  1479.   extern    char *sys_errlist[];
  1480. + #endif
  1481.   
  1482.   syslog(pri, fmt, p0, p1, p2, p3, p4)
  1483.       int pri;
  1484. *** ../mh-6.8.1/uip/annosbr.c    Fri Aug 20 13:08:11 1993
  1485. --- uip/annosbr.c    Wed Aug 25 15:56:44 1993
  1486. ***************
  1487. *** 1,6 ****
  1488.   /* annosbr.c - prepend annotation to messages */
  1489.   #ifndef    lint
  1490. ! static char ident[] = "@(#)$Id: annosbr.c,v 2.5 1992/12/15 00:20:22 jromine Exp $";
  1491.   #endif    /* lint */
  1492.   
  1493.   #include "../h/mh.h"
  1494. --- 1,6 ----
  1495.   /* annosbr.c - prepend annotation to messages */
  1496.   #ifndef    lint
  1497. ! static char ident[] = "@(#)$Id: annosbr.c,v 2.6 1993/08/25 17:24:39 jromine Exp $";
  1498.   #endif    /* lint */
  1499.   
  1500.   #include "../h/mh.h"
  1501. ***************
  1502. *** 12,18 ****
  1503.   
  1504.   
  1505.   extern int  errno;
  1506. ! long lseek ();
  1507.   static annosbr();
  1508.   
  1509.   /*   */
  1510. --- 12,18 ----
  1511.   
  1512.   
  1513.   extern int  errno;
  1514. ! off_t lseek ();
  1515.   static annosbr();
  1516.   
  1517.   /*   */
  1518. ***************
  1519. *** 97,103 ****
  1520.       if (inplace) {
  1521.       if ((fd = open (tmpfil, 0)) == NOTOK)
  1522.           adios (tmpfil, "unable to open for re-reading");
  1523. !     (void) lseek (src, 0L, 0);
  1524.       cpydata (fd, src, tmpfil, file);
  1525.       (void) close (fd);
  1526.       (void) unlink (tmpfil);
  1527. --- 97,103 ----
  1528.       if (inplace) {
  1529.       if ((fd = open (tmpfil, 0)) == NOTOK)
  1530.           adios (tmpfil, "unable to open for re-reading");
  1531. !     (void) lseek (src, (off_t)0, 0);
  1532.       cpydata (fd, src, tmpfil, file);
  1533.       (void) close (fd);
  1534.       (void) unlink (tmpfil);
  1535. *** ../mh-6.8.1/uip/distsbr.c    Fri Aug 20 13:08:16 1993
  1536. --- uip/distsbr.c    Wed Aug 25 15:56:47 1993
  1537. ***************
  1538. *** 1,11 ****
  1539.   /* distsbr.c - routines to do additional "dist-style" processing */
  1540.   #ifndef    lint
  1541. ! static char ident[] = "@(#)$Id: distsbr.c,v 1.4 1992/12/15 00:20:22 jromine Exp $";
  1542.   #endif    /* lint */
  1543.   
  1544.   #include "../h/mh.h"
  1545.   #include <ctype.h>
  1546.   #include <stdio.h>
  1547.   
  1548.   static         ready_msg();
  1549.   
  1550. --- 1,12 ----
  1551.   /* distsbr.c - routines to do additional "dist-style" processing */
  1552.   #ifndef    lint
  1553. ! static char ident[] = "@(#)$Id: distsbr.c,v 1.6 1993/08/25 22:26:24 jromine Exp $";
  1554.   #endif    /* lint */
  1555.   
  1556.   #include "../h/mh.h"
  1557.   #include <ctype.h>
  1558.   #include <stdio.h>
  1559. + #include <sys/types.h>    /* for off_t */
  1560.   
  1561.   static         ready_msg();
  1562.   
  1563. ***************
  1564. *** 13,19 ****
  1565.   static int  txtfd = NOTOK;
  1566.   
  1567.   
  1568. ! long    lseek ();
  1569.   
  1570.   /*   */
  1571.   
  1572. --- 14,20 ----
  1573.   static int  txtfd = NOTOK;
  1574.   
  1575.   
  1576. ! off_t    lseek ();
  1577.   
  1578.   /*   */
  1579.   
  1580. ***************
  1581. *** 45,51 ****
  1582.       (void) chmod (drft, m_gmprot ());
  1583.   
  1584.       ready_msg (msgnam);
  1585. !     (void) lseek (hdrfd, 0L, 0);    /* msgnam not accurate */
  1586.       cpydata (hdrfd, fileno (ofp), msgnam, drft);
  1587.   
  1588.   /*   */
  1589. --- 46,52 ----
  1590.       (void) chmod (drft, m_gmprot ());
  1591.   
  1592.       ready_msg (msgnam);
  1593. !     (void) lseek (hdrfd, (off_t)0, 0);    /* msgnam not accurate */
  1594.       cpydata (hdrfd, fileno (ofp), msgnam, drft);
  1595.   
  1596.   /*   */
  1597. ***************
  1598. *** 120,126 ****
  1599.       free (resent);
  1600.   
  1601.       if (txtfd != NOTOK) {
  1602. !     (void) lseek (txtfd, 0L, 0);    /* msgnam not accurate */
  1603.       cpydata (txtfd, fileno (ofp), msgnam, drft);
  1604.       }
  1605.   
  1606. --- 121,127 ----
  1607.       free (resent);
  1608.   
  1609.       if (txtfd != NOTOK) {
  1610. !     (void) lseek (txtfd, (off_t)0, 0);    /* msgnam not accurate */
  1611.       cpydata (txtfd, fileno (ofp), msgnam, drft);
  1612.       }
  1613.   
  1614. *** ../mh-6.8.1/uip/dropsbr.c    Fri Aug 20 13:07:52 1993
  1615. --- uip/dropsbr.c    Wed Aug 25 15:56:28 1993
  1616. ***************
  1617. *** 1,6 ****
  1618.   /* dropsbr.c - write to a mailbox */
  1619.   #ifndef    lint
  1620. ! static char ident[] = "@(#)$Id: dropsbr.c,v 1.15 1992/12/15 00:20:22 jromine Exp $";
  1621.   #endif    /* lint */
  1622.   
  1623.   #include <stdio.h>
  1624. --- 1,6 ----
  1625.   /* dropsbr.c - write to a mailbox */
  1626.   #ifndef    lint
  1627. ! static char ident[] = "@(#)$Id: dropsbr.c,v 1.16 1993/08/25 17:25:08 jromine Exp $";
  1628.   #endif    /* lint */
  1629.   
  1630.   #include <stdio.h>
  1631. ***************
  1632. *** 34,40 ****
  1633.   
  1634.   extern int  errno;
  1635.   
  1636. ! long   lseek ();
  1637.   
  1638.   /*   */
  1639.   
  1640. --- 34,40 ----
  1641.   
  1642.   extern int  errno;
  1643.   
  1644. ! off_t   lseek ();
  1645.   
  1646.   /*   */
  1647.   
  1648. ***************
  1649. *** 78,84 ****
  1650.           break;
  1651.   
  1652.           case UUCP: 
  1653. !         if (lseek (fd, 0L, 2) == (long) NOTOK) {
  1654.               (void) close (fd);
  1655.               return NOTOK;
  1656.           }
  1657. --- 78,84 ----
  1658.           break;
  1659.   
  1660.           case UUCP: 
  1661. !         if (lseek (fd, (off_t)0, 2) == (off_t) NOTOK) {
  1662.               (void) close (fd);
  1663.               return NOTOK;
  1664.           }
  1665. ***************
  1666. *** 123,129 ****
  1667.               return NOTOK;
  1668.           }
  1669.       else {
  1670. !         *clear = fstat (fd, &st) != NOTOK && st.st_size == 0L;
  1671.           break;
  1672.       }
  1673.   
  1674. --- 123,129 ----
  1675.               return NOTOK;
  1676.           }
  1677.       else {
  1678. !         *clear = fstat (fd, &st) != NOTOK && st.st_size == (off_t)0;
  1679.           break;
  1680.       }
  1681.   
  1682. ***************
  1683. *** 160,166 ****
  1684.   
  1685.       count = strlen (mmdlm2);
  1686.   
  1687. !     if (lseek (fd, (long) (-count), 2) == (long) NOTOK
  1688.           || read (fd, ldelim, count) != count)
  1689.       return NOTOK;
  1690.       ldelim[count] = 0;
  1691. --- 160,166 ----
  1692.   
  1693.       count = strlen (mmdlm2);
  1694.   
  1695. !     if (lseek (fd, (off_t) (-count), 2) == (off_t) NOTOK
  1696.           || read (fd, ldelim, count) != count)
  1697.       return NOTOK;
  1698.       ldelim[count] = 0;
  1699. ***************
  1700. *** 183,190 ****
  1701.   {
  1702.       register int    len,
  1703.                       size;
  1704. !     long    ld1,
  1705. !             ld2;
  1706.       register char  *bp;
  1707.       char    buffer[BUFSIZ];
  1708.       register struct drop   *cp,
  1709. --- 183,190 ----
  1710.   {
  1711.       register int    len,
  1712.                       size;
  1713. !     register long     ld1,
  1714. !             ld2;
  1715.       register char  *bp;
  1716.       char    buffer[BUFSIZ];
  1717.       register struct drop   *cp,
  1718. ***************
  1719. *** 206,214 ****
  1720.       for (ep = (dp = pp) + len - 1; fgets (buffer, sizeof buffer, fp);) {
  1721.       size = 0;
  1722.       if (strcmp (buffer, mmdlm1) == 0)
  1723. !         pos += ld1, dp -> d_start = pos;
  1724.       else {
  1725. !         dp -> d_start = pos, pos += (long) strlen (buffer);
  1726.           for (bp = buffer; *bp; bp++, size++)
  1727.           if (*bp == '\n')
  1728.               size++;
  1729. --- 206,214 ----
  1730.       for (ep = (dp = pp) + len - 1; fgets (buffer, sizeof buffer, fp);) {
  1731.       size = 0;
  1732.       if (strcmp (buffer, mmdlm1) == 0)
  1733. !         pos += ld1, dp -> d_start = (long) pos;
  1734.       else {
  1735. !         dp -> d_start = (long)pos , pos += (long) strlen (buffer);
  1736.           for (bp = buffer; *bp; bp++, size++)
  1737.           if (*bp == '\n')
  1738.               size++;
  1739. ***************
  1740. *** 224,233 ****
  1741.               size++;
  1742.           }
  1743.   
  1744. !     if (dp -> d_start != pos) {
  1745.           dp -> d_id = 0;
  1746. !         dp -> d_size = size;
  1747. !         dp -> d_stop = pos;
  1748.           dp++;
  1749.       }
  1750.       pos += ld2;
  1751. --- 224,233 ----
  1752.               size++;
  1753.           }
  1754.   
  1755. !     if (dp -> d_start != (long) pos) {
  1756.           dp -> d_id = 0;
  1757. !         dp -> d_size = (long) size;
  1758. !         dp -> d_stop = (long) pos;
  1759.           dp++;
  1760.       }
  1761.       pos += ld2;
  1762. ***************
  1763. *** 270,285 ****
  1764.       register int    i,
  1765.                       j,
  1766.                       size;
  1767. !     register long   start,
  1768.                       off;
  1769.       register char  *cp;
  1770.       char    buffer[BUFSIZ];
  1771.   
  1772. !     off = lseek (md, 0L, 1);
  1773.       j = strlen (mmdlm1);
  1774.       if (write (md, mmdlm1, j) != j)
  1775.       return NOTOK;
  1776. !     start = lseek (md, 0L, 1);
  1777.       size = 0;
  1778.   
  1779.       (void) fseek (fp, pos, 0);
  1780. --- 270,285 ----
  1781.       register int    i,
  1782.                       j,
  1783.                       size;
  1784. !     long           start,
  1785.                       off;
  1786.       register char  *cp;
  1787.       char    buffer[BUFSIZ];
  1788.   
  1789. !     off = (long) lseek (md, (off_t)0, 1);
  1790.       j = strlen (mmdlm1);
  1791.       if (write (md, mmdlm1, j) != j)
  1792.       return NOTOK;
  1793. !     start = (long) lseek (md, (off_t)0, 1);
  1794.       size = 0;
  1795.   
  1796.       (void) fseek (fp, pos, 0);
  1797. ***************
  1798. *** 298,304 ****
  1799.               size++;
  1800.       }
  1801.   
  1802. !     stop = lseek (md, 0L, 1);
  1803.       j = strlen (mmdlm2);
  1804.       if (write (md, mmdlm2, j) != j)
  1805.       return NOTOK;
  1806. --- 298,304 ----
  1807.               size++;
  1808.       }
  1809.   
  1810. !     stop = (long) lseek (md, (off_t)0, 1);
  1811.       j = strlen (mmdlm2);
  1812.       if (write (md, mmdlm2, j) != j)
  1813.       return NOTOK;
  1814. ***************
  1815. *** 321,327 ****
  1816.       register int    i,
  1817.                       j,
  1818.                       size;
  1819. !     register long   start,
  1820.                       stop,
  1821.                       pos;
  1822.       register char  *cp;
  1823. --- 321,327 ----
  1824.       register int    i,
  1825.                       j,
  1826.                       size;
  1827. !     long           start,
  1828.                       stop,
  1829.                       pos;
  1830.       register char  *cp;
  1831. ***************
  1832. *** 328,334 ****
  1833.       char    buffer[BUFSIZ];
  1834.       register FILE  *fp;
  1835.   
  1836. !     pos = lseek (md, 0L, 1);
  1837.       size = 0;
  1838.   
  1839.       switch (mbx_style) {
  1840. --- 328,334 ----
  1841.       char    buffer[BUFSIZ];
  1842.       register FILE  *fp;
  1843.   
  1844. !     pos = (long) lseek (md, (off_t)0, 1);
  1845.       size = 0;
  1846.   
  1847.       switch (mbx_style) {
  1848. ***************
  1849. *** 337,343 ****
  1850.           j = strlen (mmdlm1);
  1851.           if (write (md, mmdlm1, j) != j)
  1852.           return NOTOK;
  1853. !         start = lseek (md, 0L, 1);
  1854.   
  1855.           if (text) {
  1856.           i = strlen (text);
  1857. --- 337,343 ----
  1858.           j = strlen (mmdlm1);
  1859.           if (write (md, mmdlm1, j) != j)
  1860.           return NOTOK;
  1861. !         start = (long) lseek (md, (off_t)0, 1);
  1862.   
  1863.           if (text) {
  1864.           i = strlen (text);
  1865. ***************
  1866. *** 365,376 ****
  1867.                   size++;
  1868.           }
  1869.   
  1870. !         stop = lseek (md, 0L, 1);
  1871.           j = strlen (mmdlm2);
  1872.           if (write (md, mmdlm2, j) != j)
  1873.           return NOTOK;
  1874.           if (mapping)
  1875. !         (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
  1876.                   noisy);
  1877.   
  1878.           return (i != NOTOK ? OK : NOTOK);
  1879. --- 365,376 ----
  1880.                   size++;
  1881.           }
  1882.   
  1883. !         stop = (long) lseek (md, (off_t)0, 1);
  1884.           j = strlen (mmdlm2);
  1885.           if (write (md, mmdlm2, j) != j)
  1886.           return NOTOK;
  1887.           if (mapping)
  1888. !         (void) map_write (mailbox, md, 0, (long)0, start, stop, pos, size,
  1889.                   noisy);
  1890.   
  1891.           return (i != NOTOK ? OK : NOTOK);
  1892. ***************
  1893. *** 382,388 ****
  1894.           (void) close (j);
  1895.           return NOTOK;
  1896.           }
  1897. !         start = lseek (md, 0L, 1);
  1898.   
  1899.           if (text) {
  1900.           i = strlen (text);
  1901. --- 382,388 ----
  1902.           (void) close (j);
  1903.           return NOTOK;
  1904.           }
  1905. !         start = (long) lseek (md, (off_t)0, 1);
  1906.   
  1907.           if (text) {
  1908.           i = strlen (text);
  1909. ***************
  1910. *** 415,424 ****
  1911.           if (mapping) size += 2;
  1912.   
  1913.           (void) fclose (fp);
  1914. !         (void) lseek (fd, 0L, 2);
  1915. !         stop = lseek (md, 0L, 1);
  1916.           if (mapping)
  1917. !         (void) map_write (mailbox, md, 0, 0L, start, stop, pos, size,
  1918.                   noisy);
  1919.   
  1920.           return OK;
  1921. --- 415,424 ----
  1922.           if (mapping) size += 2;
  1923.   
  1924.           (void) fclose (fp);
  1925. !         (void) (long) lseek (fd, (off_t)0, 2);
  1926. !         stop = (long) lseek (md, (off_t)0, 1);
  1927.           if (mapping)
  1928. !         (void) map_write (mailbox, md, 0, (long)0, start, stop, pos, size,
  1929.                   noisy);
  1930.   
  1931.           return OK;
  1932. ***************
  1933. *** 427,433 ****
  1934.   
  1935.   /*   */
  1936.   
  1937. ! int    mbx_size (md, start, stop)
  1938.   int    md;
  1939.   long    start,
  1940.       stop;
  1941. --- 427,433 ----
  1942.   
  1943.   /*   */
  1944.   
  1945. ! int     mbx_size (md, start, stop)
  1946.   int    md;
  1947.   long    start,
  1948.       stop;
  1949. ***************
  1950. *** 521,527 ****
  1951.   
  1952.       bcopy ((char *) mp, (char *) dp, sizeof *dp);
  1953.   
  1954. !     (void) lseek (md, (long) sizeof *mp, 0);
  1955.       if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
  1956.       i = 0;
  1957.       free ((char *) dp);
  1958. --- 521,527 ----
  1959.   
  1960.       bcopy ((char *) mp, (char *) dp, sizeof *dp);
  1961.   
  1962. !     (void) lseek (md, (off_t) sizeof *mp, 0);
  1963.       if ((i = read (md, (char *) (dp + 1), msgp * sizeof *dp)) < sizeof *dp) {
  1964.       i = 0;
  1965.       free ((char *) dp);
  1966. ***************
  1967. *** 553,559 ****
  1968.           id,
  1969.       size,
  1970.       noisy;
  1971. ! long    last,
  1972.       start,
  1973.           stop,
  1974.           pos;
  1975. --- 553,559 ----
  1976.           id,
  1977.       size,
  1978.       noisy;
  1979. ! long   last,
  1980.       start,
  1981.           stop,
  1982.           pos;
  1983. ***************
  1984. *** 590,596 ****
  1985.           return NOTOK;
  1986.       }
  1987.   
  1988. !     switch (i = mbx_read (fp, 0L, &rp, noisy)) {
  1989.           case NOTOK:
  1990.           (void) fclose (fp);
  1991.           (void) mbx_close (file, fd);
  1992. --- 590,596 ----
  1993.           return NOTOK;
  1994.       }
  1995.   
  1996. !     switch (i = mbx_read (fp, (off_t)0, &rp, noisy)) {
  1997.           case NOTOK:
  1998.           (void) fclose (fp);
  1999.           (void) mbx_close (file, fd);
  2000. ***************
  2001. *** 604,610 ****
  2002.           for (dp = rp; i-- >0; dp++) {
  2003.               if (dp -> d_start == start)
  2004.               dp -> d_id = id;
  2005. !             (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
  2006.               if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  2007.               if (noisy)
  2008.                   admonish (file, "write error");
  2009. --- 604,610 ----
  2010.           for (dp = rp; i-- >0; dp++) {
  2011.               if (dp -> d_start == start)
  2012.               dp -> d_id = id;
  2013. !             (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
  2014.               if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  2015.               if (noisy)
  2016.                   admonish (file, "write error");
  2017. ***************
  2018. *** 622,631 ****
  2019.           last = d1.d_start;
  2020.       dp = &d2;
  2021.       dp -> d_id = id;
  2022. !     dp -> d_size = size ? size : mbx_size (fd, start, stop);
  2023. !     dp -> d_start = start;
  2024. !     dp -> d_stop = stop;
  2025. !     (void) lseek (fd, (long) (++d1.d_id * sizeof *dp), 0);
  2026.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  2027.           if (noisy)
  2028.           admonish (file, "write error");
  2029. --- 622,631 ----
  2030.           last = d1.d_start;
  2031.       dp = &d2;
  2032.       dp -> d_id = id;
  2033. !     dp -> d_size = (long) (size ? size : mbx_size (fd, start, stop));
  2034. !     dp -> d_start = (long) start;
  2035. !     dp -> d_stop = (long) stop;
  2036. !     (void) lseek (fd, (off_t) (++d1.d_id * sizeof *dp), 0);
  2037.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  2038.           if (noisy)
  2039.           admonish (file, "write error");
  2040. ***************
  2041. *** 636,645 ****
  2042.   
  2043.       dp = &d1;
  2044.       dp -> d_size = DRVRSN;
  2045. !     dp -> d_start = last;
  2046. !     dp -> d_stop = lseek (md, 0L, 1);
  2047.   
  2048. !     (void) lseek (fd, 0L, 0);
  2049.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  2050.       if (noisy)
  2051.           admonish (file, "write error");
  2052. --- 636,645 ----
  2053.   
  2054.       dp = &d1;
  2055.       dp -> d_size = DRVRSN;
  2056. !     dp -> d_start = (long) last;
  2057. !     dp -> d_stop = (long) lseek (md, (off_t)0, 1);
  2058.   
  2059. !     (void) lseek (fd, (off_t)0, 0);
  2060.       if (write (fd, (char *) dp, sizeof *dp) != sizeof *dp) {
  2061.       if (noisy)
  2062.           admonish (file, "write error");
  2063. ***************
  2064. *** 701,715 ****
  2065.       return NOTOK;
  2066.       }
  2067.   
  2068. !     if (dp -> d_stop != pos) {
  2069. !     if (noisy && pos != 0L)
  2070.           admonish (NULLCP,
  2071.               "%s: pointer mismatch or incomplete index (%ld!=%ld)", 
  2072. !             file, dp -> d_stop, pos);
  2073.       return NOTOK;
  2074.       }
  2075.   
  2076. !     if ((long) ((dp -> d_id + 1) * sizeof *dp) != lseek (fd, 0L, 2)) {
  2077.       if (noisy)
  2078.           admonish (NULLCP, "%s: corrupt index(1)", file);
  2079.       return NOTOK;
  2080. --- 701,715 ----
  2081.       return NOTOK;
  2082.       }
  2083.   
  2084. !     if (dp -> d_stop != (long) pos) {
  2085. !     if (noisy && pos != (long)0)
  2086.           admonish (NULLCP,
  2087.               "%s: pointer mismatch or incomplete index (%ld!=%ld)", 
  2088. !             file, dp -> d_stop, (long) pos);
  2089.       return NOTOK;
  2090.       }
  2091.   
  2092. !     if ((long) ((dp -> d_id + 1) * sizeof *dp) != (long) lseek (fd, (off_t)0, 2)) {
  2093.       if (noisy)
  2094.           admonish (NULLCP, "%s: corrupt index(1)", file);
  2095.       return NOTOK;
  2096. ***************
  2097. *** 717,723 ****
  2098.   
  2099.       dl = &d;
  2100.       count = (long) strlen (mmdlm2);
  2101. !     (void) lseek (fd, (long) (dp -> d_id * sizeof *dp), 0);
  2102.       if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
  2103.           || (ntohl(dl -> d_stop) != dp -> d_stop
  2104.           && ntohl(dl -> d_stop) + count != dp -> d_stop)) {
  2105. --- 717,723 ----
  2106.   
  2107.       dl = &d;
  2108.       count = (long) strlen (mmdlm2);
  2109. !     (void) lseek (fd, (off_t) (dp -> d_id * sizeof *dp), 0);
  2110.       if (read (fd, (char *) dl, sizeof *dl) != sizeof *dl
  2111.           || (ntohl(dl -> d_stop) != dp -> d_stop
  2112.           && ntohl(dl -> d_stop) + count != dp -> d_stop)) {
  2113. *** ../mh-6.8.1/uip/forw.c    Fri Aug 20 13:08:05 1993
  2114. --- uip/forw.c    Wed Aug 25 15:56:41 1993
  2115. ***************
  2116. *** 1,6 ****
  2117.   /* forw.c - forward messages */
  2118.   #ifndef    lint
  2119. ! static char ident[] = "@(#)$Id: forw.c,v 1.13 1992/12/15 00:20:22 jromine Exp $";
  2120.   #endif    /* lint */
  2121.   
  2122.   #include "../h/mh.h"
  2123. --- 1,6 ----
  2124.   /* forw.c - forward messages */
  2125.   #ifndef    lint
  2126. ! static char ident[] = "@(#)$Id: forw.c,v 1.14 1993/08/25 17:25:18 jromine Exp $";
  2127.   #endif    /* lint */
  2128.   
  2129.   #include "../h/mh.h"
  2130. ***************
  2131. *** 133,139 ****
  2132.   static struct msgs *mp = NULL;        /* used a lot */
  2133.   
  2134.   
  2135. ! long    lseek (), time ();
  2136.   
  2137.   /*   */
  2138.   
  2139. --- 133,140 ----
  2140.   static struct msgs *mp = NULL;        /* used a lot */
  2141.   
  2142.   
  2143. ! long    time ();
  2144. ! off_t    lseek();
  2145.   
  2146.   /*   */
  2147.   
  2148. ***************
  2149. *** 351,357 ****
  2150.                 : m_draft (dfolder, NULLCP, NOUSE, &isdf));
  2151.       if (!buildsw && stat (drft, &st) != NOTOK) {
  2152.   #endif    /* MHE */
  2153. !     printf ("Draft \"%s\" exists (%ld bytes).", drft, st.st_size);
  2154.       for (i = LISTDSW; i != YESW;) {
  2155.           if (!(argp = getans ("\nDisposition? ", isdf ? aqrnl : aqrl)))
  2156.           done (1);
  2157. --- 352,358 ----
  2158.                 : m_draft (dfolder, NULLCP, NOUSE, &isdf));
  2159.       if (!buildsw && stat (drft, &st) != NOTOK) {
  2160.   #endif    /* MHE */
  2161. !     printf ("Draft \"%s\" exists (%ld bytes).", drft, (long) st.st_size);
  2162.       for (i = LISTDSW; i != YESW;) {
  2163.           if (!(argp = getans ("\nDisposition? ", isdf ? aqrnl : aqrl)))
  2164.           done (1);
  2165. ***************
  2166. *** 680,685 ****
  2167.       if (fclose (tmp))
  2168.       adios (tmpfil, "error writing");
  2169.   
  2170. !     (void) lseek (in, 0L, 0);
  2171.       return in;
  2172.   }
  2173. --- 681,686 ----
  2174.       if (fclose (tmp))
  2175.       adios (tmpfil, "error writing");
  2176.   
  2177. !     (void) lseek (in, (off_t)0, 0);
  2178.       return in;
  2179.   }
  2180. *** ../mh-6.8.1/uip/ftpsbr.c    Fri Aug 20 13:07:53 1993
  2181. --- uip/ftpsbr.c    Wed Aug 25 15:56:28 1993
  2182. ***************
  2183. *** 1,7 ****
  2184.   /* ftpsbr.c - simple FTP client library (why doesn't BSD have one?!?) */
  2185.   
  2186.   #ifndef    lint
  2187. ! static char ident[] = "@(#)$Id: ftpsbr.c,v 1.12 1993/08/20 15:49:47 jromine Exp $";
  2188.   #endif
  2189.   
  2190.   #include "../h/mh.h"
  2191. --- 1,7 ----
  2192.   /* ftpsbr.c - simple FTP client library (why doesn't BSD have one?!?) */
  2193.   
  2194.   #ifndef    lint
  2195. ! static char ident[] = "@(#)$Id: ftpsbr.c,v 1.13 1993/08/25 17:25:27 jromine Exp $";
  2196.   #endif
  2197.   
  2198.   #include "../h/mh.h"
  2199. ***************
  2200. *** 67,74 ****
  2201. --- 67,76 ----
  2202.   /*   */
  2203.   
  2204.   extern    int    errno;
  2205. + #ifndef    BSD44
  2206.   extern    int    sys_nerr;
  2207.   extern    char   *sys_errlist[];
  2208. + #endif
  2209.   
  2210.   
  2211.   #define    start_tcp_client(sock,priv) \
  2212. *** ../mh-6.8.1/uip/mhn.c    Fri Aug 20 13:07:56 1993
  2213. --- uip/mhn.c    Wed Aug 25 15:56:33 1993
  2214. ***************
  2215. *** 1,6 ****
  2216.   /* mhn.c - multi-media MH */
  2217.   #ifndef    lint
  2218. ! static char ident[] = "@(#)$Id: mhn.c,v 2.22 1993/08/20 15:52:01 jromine Exp $";
  2219.   #endif    /* lint */
  2220.   
  2221.   #include "../h/mh.h"
  2222. --- 1,6 ----
  2223.   /* mhn.c - multi-media MH */
  2224.   #ifndef    lint
  2225. ! static char ident[] = "@(#)$Id: mhn.c,v 2.23 1993/08/25 17:26:22 jromine Exp $";
  2226.   #endif    /* lint */
  2227.   
  2228.   #include "../h/mh.h"
  2229. ***************
  2230. *** 183,190 ****
  2231. --- 183,192 ----
  2232.   
  2233.   
  2234.   extern    int    errno;
  2235. + #ifndef    BSD44
  2236.   extern    int    sys_nerr;
  2237.   extern    char   *sys_errlist[];
  2238. + #endif
  2239.   
  2240.   off_t    lseek ();
  2241.   time_t    time ();
  2242. ***************
  2243. *** 3888,3897 ****
  2244.       }
  2245.   
  2246.       if (ce -> ce_fp && fstat (fileno (ce -> ce_fp), &st) != NOTOK)
  2247. !     return st.st_size;
  2248.   
  2249.       if (ce -> ce_file)
  2250. !     return stat (ce -> ce_file, &st) != NOTOK ? st.st_size : 0L;
  2251.   
  2252.       if (ct -> c_encoding == CE_EXTERNAL)
  2253.       goto estimate;
  2254. --- 3890,3899 ----
  2255.       }
  2256.   
  2257.       if (ce -> ce_fp && fstat (fileno (ce -> ce_fp), &st) != NOTOK)
  2258. !     return (long) st.st_size;
  2259.   
  2260.       if (ce -> ce_file)
  2261. !     return stat (ce -> ce_file, &st) != NOTOK ? (long) st.st_size : 0L;
  2262.   
  2263.       if (ct -> c_encoding == CE_EXTERNAL)
  2264.       goto estimate;
  2265. ***************
  2266. *** 3900,3906 ****
  2267.       if ((fd = (*ct -> c_ceopenfnx) (ct, &file)) == NOTOK)
  2268.       goto estimate;
  2269.   
  2270. !     size = fstat (fd, &st) != NOTOK ? st.st_size : 0L;
  2271.   
  2272.       (*ct -> c_ceclosefnx) (ct);
  2273.   
  2274. --- 3902,3908 ----
  2275.       if ((fd = (*ct -> c_ceopenfnx) (ct, &file)) == NOTOK)
  2276.       goto estimate;
  2277.   
  2278. !     size = fstat (fd, &st) != NOTOK ? (long) st.st_size : 0L;
  2279.   
  2280.       (*ct -> c_ceclosefnx) (ct);
  2281.   
  2282. ***************
  2283. *** 4033,4039 ****
  2284.       if (digested = ct -> c_digested)
  2285.       MD5Init (&mdContext);
  2286.   
  2287. !     (void) lseek (fd = fileno (ct -> c_fp), ct -> c_begin, 0);
  2288.       bitno = 18, bits = 0L, skip = 0;
  2289.       while (len > 0)
  2290.       switch (cc = read (fd, buffer, sizeof buffer - 1)) {
  2291. --- 4035,4041 ----
  2292.       if (digested = ct -> c_digested)
  2293.       MD5Init (&mdContext);
  2294.   
  2295. !     (void) lseek (fd = fileno (ct -> c_fp), (off_t)ct -> c_begin, 0);
  2296.       bitno = 18, bits = 0L, skip = 0;
  2297.       while (len > 0)
  2298.       switch (cc = read (fd, buffer, sizeof buffer - 1)) {
  2299. ***************
  2300. *** 4061,4067 ****
  2301.                   if (debugsw)
  2302.                       fprintf (stderr,
  2303.                            "*cp=0x%x pos=%ld skip=%d\n", *cp,
  2304. !                          lseek (fd, 0L, 1) - (ep - cp),
  2305.                            skip);
  2306.                   content_error (NULLCP, ct,
  2307.                         "invalid BASE64 encoding -- continuing");
  2308. --- 4063,4069 ----
  2309.                   if (debugsw)
  2310.                       fprintf (stderr,
  2311.                            "*cp=0x%x pos=%ld skip=%d\n", *cp,
  2312. !                          (long) lseek (fd, (off_t)0, 1) - (ep - cp),
  2313.                            skip);
  2314.                   content_error (NULLCP, ct,
  2315.                         "invalid BASE64 encoding -- continuing");
  2316. ***************
  2317. *** 4418,4424 ****
  2318.       return NOTOK;
  2319.       }
  2320.   
  2321. !     (void) lseek (fd = fileno (ct -> c_fp), ct -> c_begin, 0);
  2322.       while (len > 0)
  2323.       switch (cc = read (fd, buffer, sizeof buffer - 1)) {
  2324.           case NOTOK:
  2325. --- 4420,4426 ----
  2326.       return NOTOK;
  2327.       }
  2328.   
  2329. !     (void) lseek (fd = fileno (ct -> c_fp), (off_t) ct -> c_begin, 0);
  2330.       while (len > 0)
  2331.       switch (cc = read (fd, buffer, sizeof buffer - 1)) {
  2332.           case NOTOK:
  2333. ***************
  2334. *** 5361,5367 ****
  2335.           if (access (ct -> c_file = ci -> ci_magic, 04) == NOTOK)
  2336.               adios ("reading", "unable to access %s for", ct -> c_file);
  2337.           if (listsw && stat (ct -> c_file, &st) != NOTOK)
  2338. !             ct -> c_end = st.st_size;
  2339.           ci -> ci_magic = NULL;
  2340.           }
  2341.           return OK;
  2342. --- 5363,5369 ----
  2343.           if (access (ct -> c_file = ci -> ci_magic, 04) == NOTOK)
  2344.               adios ("reading", "unable to access %s for", ct -> c_file);
  2345.           if (listsw && stat (ct -> c_file, &st) != NOTOK)
  2346. !             ct -> c_end = (long) st.st_size;
  2347.           ci -> ci_magic = NULL;
  2348.           }
  2349.           return OK;
  2350. ***************
  2351. *** 5445,5451 ****
  2352.           (void) sprintf (buffer, "%s/%d", mp -> foldpath, msgnum);
  2353.           p -> c_file = add (buffer, NULLCP);
  2354.           if (listsw && stat (p -> c_file, &st) != NOTOK)
  2355. !             p -> c_end = st.st_size;
  2356.   
  2357.           if ((part = (struct part *) calloc (1, sizeof *part)) == NULL)
  2358.               adios (NULLCP, "out of memory");
  2359. --- 5447,5453 ----
  2360.           (void) sprintf (buffer, "%s/%d", mp -> foldpath, msgnum);
  2361.           p -> c_file = add (buffer, NULLCP);
  2362.           if (listsw && stat (p -> c_file, &st) != NOTOK)
  2363. !             p -> c_end = (long) st.st_size;
  2364.   
  2365.           if ((part = (struct part *) calloc (1, sizeof *part)) == NULL)
  2366.               adios (NULLCP, "out of memory");
  2367. ***************
  2368. *** 5718,5724 ****
  2369.           struct stat st;
  2370.   
  2371.           if (stat (ct -> c_file, &st) != NOTOK)
  2372. !             ct -> c_end = st.st_size;
  2373.           }
  2374.           if (ct -> c_type != CT_TEXT
  2375.               && !(ct -> c_type == CT_APPLICATION
  2376. --- 5720,5726 ----
  2377.           struct stat st;
  2378.   
  2379.           if (stat (ct -> c_file, &st) != NOTOK)
  2380. !             ct -> c_end = (long) st.st_size;
  2381.           }
  2382.           if (ct -> c_type != CT_TEXT
  2383.               && !(ct -> c_type == CT_APPLICATION
  2384. ***************
  2385. *** 6393,6399 ****
  2386.   
  2387.       if (fstat (fileno (fp), &st) == NOTOK)
  2388.       adios ("failed", "fstat of %s", tmpfil);
  2389. !     nlines += ((st.st_size - pos) + CPERLIN) / (CPERLIN + 1);
  2390.       nparts = (nlines + (LPERMSG - 1)) / LPERMSG;
  2391.   
  2392.       if (nparts <= 1)
  2393. --- 6395,6401 ----
  2394.   
  2395.       if (fstat (fileno (fp), &st) == NOTOK)
  2396.       adios ("failed", "fstat of %s", tmpfil);
  2397. !     nlines += (((long) st.st_size - pos) + CPERLIN) / (CPERLIN + 1);
  2398.       nparts = (nlines + (LPERMSG - 1)) / LPERMSG;
  2399.   
  2400.       if (nparts <= 1)
  2401. *** ../mh-6.8.1/uip/msh.c    Fri Aug 20 13:07:58 1993
  2402. --- uip/msh.c    Wed Aug 25 15:56:34 1993
  2403. ***************
  2404. *** 1,6 ****
  2405.   /* msh.c - The MH shell (sigh) */
  2406.   #ifndef    lint
  2407. ! static char ident[] = "@(#)$Id: msh.c,v 2.13 1992/12/15 00:20:22 jromine Exp $";
  2408.   #endif    /* lint */
  2409.   
  2410.   /* TODO:
  2411. --- 1,6 ----
  2412.   /* msh.c - The MH shell (sigh) */
  2413.   #ifndef    lint
  2414. ! static char ident[] = "@(#)$Id: msh.c,v 2.13 1992/12/15 00:20:22 jromine Exp jromine $";
  2415.   #endif    /* lint */
  2416.   
  2417.   /* TODO:
  2418. *** ../mh-6.8.1/uip/mshcmds.c    Fri Aug 20 13:08:01 1993
  2419. --- uip/mshcmds.c    Wed Aug 25 15:56:37 1993
  2420. ***************
  2421. *** 1,6 ****
  2422.   /* mshcmds.c - command handlers in msh */
  2423.   #ifndef    lint
  2424. ! static char ident[] = "@(#)$Id: mshcmds.c,v 1.25 1992/12/15 00:20:22 jromine Exp $";
  2425.   #endif    /* lint */
  2426.   
  2427.   #include "../h/mh.h"
  2428. --- 1,6 ----
  2429.   /* mshcmds.c - command handlers in msh */
  2430.   #ifndef    lint
  2431. ! static char ident[] = "@(#)$Id: mshcmds.c,v 1.25 1992/12/15 00:20:22 jromine Exp jromine $";
  2432.   #endif    /* lint */
  2433.   
  2434.   #include "../h/mh.h"
  2435. ***************
  2436. *** 20,28 ****
  2437.   #include <errno.h>
  2438.   #include <setjmp.h>
  2439.   #include <signal.h>
  2440. - #include "../h/mshsbr.h"
  2441.   #include <sys/types.h>
  2442.   #include <sys/stat.h>
  2443.   
  2444.   /*   */
  2445.   
  2446. --- 20,28 ----
  2447.   #include <errno.h>
  2448.   #include <setjmp.h>
  2449.   #include <signal.h>
  2450.   #include <sys/types.h>
  2451.   #include <sys/stat.h>
  2452. + #include "../h/mshsbr.h"
  2453.   
  2454.   /*   */
  2455.   
  2456. *** ../mh-6.8.1/uip/popsbr.c    Fri Aug 20 13:07:57 1993
  2457. --- uip/popsbr.c    Wed Aug 25 15:56:34 1993
  2458. ***************
  2459. *** 1,6 ****
  2460.   /* popsbr.c - POP client subroutines */
  2461.   #ifndef    lint
  2462. ! static char ident[] = "@(#)$Id: popsbr.c,v 2.4 1992/11/24 18:32:32 jromine Exp $";
  2463.   #endif    lint
  2464.   
  2465.   #if defined(NNTP) && !defined(PSHSBR)
  2466. --- 1,6 ----
  2467.   /* popsbr.c - POP client subroutines */
  2468.   #ifndef    lint
  2469. ! static char ident[] = "@(#)$Id: popsbr.c,v 2.5 1993/08/25 17:26:40 jromine Exp $";
  2470.   #endif    lint
  2471.   
  2472.   #if defined(NNTP) && !defined(PSHSBR)
  2473. ***************
  2474. *** 28,35 ****
  2475. --- 28,37 ----
  2476.   #define    TRMLEN    (sizeof TRM - 1)
  2477.   
  2478.   extern int  errno;
  2479. + #ifndef    BSD44
  2480.   extern int  sys_nerr;
  2481.   extern char *sys_errlist[];
  2482. + #endif
  2483.   
  2484.   static int  poprint = 0;
  2485.   static int  pophack = 0;
  2486. *** ../mh-6.8.1/uip/post.c    Fri Aug 20 13:07:52 1993
  2487. --- uip/post.c    Wed Aug 25 15:56:27 1993
  2488. ***************
  2489. *** 1,6 ****
  2490.   /* post.c - enter messages into the transport system */
  2491.   #ifndef    lint
  2492. ! static char ident[] = "@(#)$Id: post.c,v 2.22 1993/08/20 15:53:20 jromine Exp $";
  2493.   #endif    /* lint */
  2494.   
  2495.   #include "../h/mh.h"
  2496. --- 1,6 ----
  2497.   /* post.c - enter messages into the transport system */
  2498.   #ifndef    lint
  2499. ! static char ident[] = "@(#)$Id: post.c,v 2.23 1993/08/25 17:26:51 jromine Exp $";
  2500.   #endif    /* lint */
  2501.   
  2502.   #include "../h/mh.h"
  2503. ***************
  2504. *** 332,338 ****
  2505.   
  2506.   static    int    queued = 0;
  2507.   
  2508. ! long    lseek (), time ();
  2509.   
  2510.   static    putfmt(), start_headers(), finish_headers(), putgrp(), pl();
  2511.   static    anno(), make_bcc_file(), verify_all_addresses();
  2512. --- 332,339 ----
  2513.   
  2514.   static    int    queued = 0;
  2515.   
  2516. ! off_t    lseek ();
  2517. ! long    time ();
  2518.   
  2519.   static    putfmt(), start_headers(), finish_headers(), putgrp(), pl();
  2520.   static    anno(), make_bcc_file(), verify_all_addresses();
  2521. ***************
  2522. *** 1846,1852 ****
  2523.       struct rp_bufstruct reply;
  2524.   #endif    /* MMDFMTS */
  2525.   
  2526. !     (void) lseek (fd, 0L, 0);
  2527.       while ((state = read (fd, buf, sizeof buf)) > 0)
  2528.   #ifdef    MMDFMTS
  2529.       if (rp_isbad (mm_wtxt (buf, state)))
  2530. --- 1847,1853 ----
  2531.       struct rp_bufstruct reply;
  2532.   #endif    /* MMDFMTS */
  2533.   
  2534. !     (void) lseek (fd, (off_t)0, 0);
  2535.       while ((state = read (fd, buf, sizeof buf)) > 0)
  2536.   #ifdef    MMDFMTS
  2537.       if (rp_isbad (mm_wtxt (buf, state)))
  2538. ***************
  2539. *** 2450,2456 ****
  2540.           (void) fflush (stdout);
  2541.   
  2542.       case NOTOK: 
  2543. !         (void) lseek (fd, 0L, 0);
  2544.           if ((md = mbx_open (mailbox, hp -> h_uid, hp -> h_gid, m_gmprot ()))
  2545.               == NOTOK) {
  2546.           if (!talk)
  2547. --- 2451,2457 ----
  2548.           (void) fflush (stdout);
  2549.   
  2550.       case NOTOK: 
  2551. !         (void) lseek (fd, (off_t)0, 0);
  2552.           if ((md = mbx_open (mailbox, hp -> h_uid, hp -> h_gid, m_gmprot ()))
  2553.               == NOTOK) {
  2554.           if (!talk)
  2555. ***************
  2556. *** 2597,2603 ****
  2557.       if ((fd = open (tmpfil, 2)) == NOTOK)
  2558.       return NOTOK;
  2559.   
  2560. !     (void) lseek (qd, 0L, 0);
  2561.       while ((i = read (qd, buffer, sizeof buffer)) > 0)
  2562.       if (write (fd, buffer, i) != i) {
  2563.           (void) close (fd);
  2564. --- 2598,2604 ----
  2565.       if ((fd = open (tmpfil, 2)) == NOTOK)
  2566.       return NOTOK;
  2567.   
  2568. !     (void) lseek (qd, (off_t)0, 0);
  2569.       while ((i = read (qd, buffer, sizeof buffer)) > 0)
  2570.       if (write (fd, buffer, i) != i) {
  2571.           (void) close (fd);
  2572. ***************
  2573. *** 2608,2614 ****
  2574.       return NOTOK;
  2575.       }
  2576.   
  2577. !     (void) lseek (fd, 0L, 0);
  2578.   
  2579.       return fd;
  2580.   }
  2581. --- 2609,2615 ----
  2582.       return NOTOK;
  2583.       }
  2584.   
  2585. !     (void) lseek (fd, (off_t)0, 0);
  2586.   
  2587.       return fd;
  2588.   }
  2589. ***************
  2590. *** 2657,2663 ****
  2591.           goto oops;
  2592.       }
  2593.   
  2594. !     (void) lseek (fd, 0L, 0);
  2595.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  2596.       if (fwrite (buffer, sizeof *buffer, i, fp) != i) {
  2597.       oops:   ;
  2598. --- 2658,2664 ----
  2599.           goto oops;
  2600.       }
  2601.   
  2602. !     (void) lseek (fd, (off_t)0, 0);
  2603.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  2604.       if (fwrite (buffer, sizeof *buffer, i, fp) != i) {
  2605.       oops:   ;
  2606. ***************
  2607. *** 2698,2704 ****
  2608.               fd;
  2609.       char    tmpfil[BUFSIZ];
  2610.   
  2611. !     (void) lseek (td, 0L, 0);
  2612.       if ((qd = dup (td)) == NOTOK)
  2613.       adios ("fd", "unable to dup");
  2614.   
  2615. --- 2699,2705 ----
  2616.               fd;
  2617.       char    tmpfil[BUFSIZ];
  2618.   
  2619. !     (void) lseek (td, (off_t)0, 0);
  2620.       if ((qd = dup (td)) == NOTOK)
  2621.       adios ("fd", "unable to dup");
  2622.   
  2623. ***************
  2624. *** 2755,2761 ****
  2625.       }
  2626.       nm_waend ();
  2627.   
  2628. !     (void) lseek (fd, 0L, 0);
  2629.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  2630.       if (nm_wtxt (buffer, i) == NOTOK) {
  2631.           fprintf (stderr,
  2632. --- 2756,2762 ----
  2633.       }
  2634.       nm_waend ();
  2635.   
  2636. !     (void) lseek (fd, (off_t)0, 0);
  2637.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  2638.       if (nm_wtxt (buffer, i) == NOTOK) {
  2639.           fprintf (stderr,
  2640. *** ../mh-6.8.1/uip/pshsbr.c    Fri Aug 20 13:07:57 1993
  2641. --- uip/pshsbr.c    Wed Aug 25 15:56:34 1993
  2642. ***************
  2643. *** 1,6 ****
  2644.   /* popsbr.c - POP client subroutines */
  2645.   #ifndef    lint
  2646. ! static char ident[] = "@(#)$Id: popsbr.c,v 2.4 1992/11/24 18:32:32 jromine Exp $";
  2647.   #endif    lint
  2648.   
  2649.   #if defined(NNTP) && !defined(PSHSBR)
  2650. --- 1,6 ----
  2651.   /* popsbr.c - POP client subroutines */
  2652.   #ifndef    lint
  2653. ! static char ident[] = "@(#)$Id: popsbr.c,v 2.5 1993/08/25 17:26:40 jromine Exp $";
  2654.   #endif    lint
  2655.   
  2656.   #if defined(NNTP) && !defined(PSHSBR)
  2657. ***************
  2658. *** 28,35 ****
  2659. --- 28,37 ----
  2660.   #define    TRMLEN    (sizeof TRM - 1)
  2661.   
  2662.   extern int  errno;
  2663. + #ifndef    BSD44
  2664.   extern int  sys_nerr;
  2665.   extern char *sys_errlist[];
  2666. + #endif
  2667.   
  2668.   static int  poprint = 0;
  2669.   static int  pophack = 0;
  2670. *** ../mh-6.8.1/uip/rcvpack.c    Fri Aug 20 13:08:12 1993
  2671. --- uip/rcvpack.c    Wed Aug 25 15:56:45 1993
  2672. ***************
  2673. *** 1,6 ****
  2674.   /* rcvpack.c - a rcvmail program to keep a copy */
  2675.   #ifndef    lint
  2676. ! static char ident[] = "@(#)$Id: rcvpack.c,v 1.4 1992/12/15 00:20:22 jromine Exp $";
  2677.   #endif    /* lint */
  2678.   
  2679.   #include "../h/mh.h"
  2680. --- 1,6 ----
  2681.   /* rcvpack.c - a rcvmail program to keep a copy */
  2682.   #ifndef    lint
  2683. ! static char ident[] = "@(#)$Id: rcvpack.c,v 1.5 1993/08/25 17:27:19 jromine Exp $";
  2684.   #endif    /* lint */
  2685.   
  2686.   #include "../h/mh.h"
  2687. ***************
  2688. *** 20,29 ****
  2689.   
  2690.       NULL, 0
  2691.   };
  2692. - /*   */
  2693. - long    lseek ();
  2694.   
  2695.   /*   */
  2696.   
  2697. --- 20,25 ----
  2698. *** ../mh-6.8.1/uip/rcvtty.c    Fri Aug 20 13:07:51 1993
  2699. --- uip/rcvtty.c    Wed Aug 25 15:56:26 1993
  2700. ***************
  2701. *** 1,6 ****
  2702.   /* rcvtty.c - a rcvmail program (a lot like rcvalert) handling IPC ttys */
  2703.   #ifndef    lint
  2704. ! static char ident[] = "@(#)$Id: rcvtty.c,v 1.11 1992/12/15 00:20:22 jromine Exp $";
  2705.   #endif    /* lint */
  2706.   
  2707.   #ifndef    BSD42
  2708. --- 1,6 ----
  2709.   /* rcvtty.c - a rcvmail program (a lot like rcvalert) handling IPC ttys */
  2710.   #ifndef    lint
  2711. ! static char ident[] = "@(#)$Id: rcvtty.c,v 1.12 1993/08/25 17:27:27 jromine Exp $";
  2712.   #endif    /* lint */
  2713.   
  2714.   #ifndef    BSD42
  2715. ***************
  2716. *** 53,59 ****
  2717.   
  2718.   static  jmp_buf myctx;
  2719.   
  2720. ! long    lseek ();
  2721.   char   *getusr ();
  2722.   
  2723.   static int    message_fd(), header_fd();
  2724. --- 53,59 ----
  2725.   
  2726.   static  jmp_buf myctx;
  2727.   
  2728. ! off_t    lseek ();
  2729.   char   *getusr ();
  2730.   
  2731.   static int    message_fd(), header_fd();
  2732. ***************
  2733. *** 234,240 ****
  2734.               (void) pidwait (child_id, OK);
  2735.   
  2736.               (void) alarm (0);
  2737. !             if (fstat (fd, &st) != NOTOK && st.st_size > 0L)
  2738.               return fd;
  2739.               (void) close (fd);
  2740.               return header_fd ();
  2741. --- 234,240 ----
  2742.               (void) pidwait (child_id, OK);
  2743.   
  2744.               (void) alarm (0);
  2745. !             if (fstat (fd, &st) != NOTOK && st.st_size > (off_t)0)
  2746.               return fd;
  2747.               (void) close (fd);
  2748.               return header_fd ();
  2749. ***************
  2750. *** 316,322 ****
  2751.           return;
  2752.       }
  2753.   
  2754. !     (void) lseek (md, 0L, 0);
  2755.   
  2756.       while ((i = read (md, buffer, sizeof buffer)) > 0)
  2757.       if (write (td, buffer, i) != i)
  2758. --- 316,322 ----
  2759.           return;
  2760.       }
  2761.   
  2762. !     (void) lseek (md, (off_t)0, 0);
  2763.   
  2764.       while ((i = read (md, buffer, sizeof buffer)) > 0)
  2765.       if (write (td, buffer, i) != i)
  2766. ***************
  2767. *** 340,346 ****
  2768.       return;
  2769.       (void) signal (SIGPIPE, SIG_IGN);
  2770.   
  2771. !     (void) lseek (md, 0L, 0);
  2772.       while ((i = read (md, buffer, sizeof buffer)) > 0)
  2773.       if (write (td, buffer, i) != i)
  2774.           break;
  2775. --- 340,346 ----
  2776.       return;
  2777.       (void) signal (SIGPIPE, SIG_IGN);
  2778.   
  2779. !     (void) lseek (md, (off_t), 0);
  2780.       while ((i = read (md, buffer, sizeof buffer)) > 0)
  2781.       if (write (td, buffer, i) != i)
  2782.           break;
  2783. *** ../mh-6.8.1/uip/replsbr.c    Fri Aug 20 13:07:50 1993
  2784. --- uip/replsbr.c    Wed Aug 25 15:56:26 1993
  2785. ***************
  2786. *** 1,6 ****
  2787.   /* replsbr.c - routines to help repl along... */
  2788.   #ifndef    lint
  2789. ! static char ident[] = "@(#)$Id: replsbr.c,v 1.14 1993/02/26 21:59:28 jromine Exp $";
  2790.   #endif    /* lint */
  2791.   
  2792.   #include "../h/mh.h"
  2793. --- 1,6 ----
  2794.   /* replsbr.c - routines to help repl along... */
  2795.   #ifndef    lint
  2796. ! static char ident[] = "@(#)$Id: replsbr.c,v 1.15 1993/08/25 17:27:35 jromine Exp $";
  2797.   #endif    /* lint */
  2798.   
  2799.   #include "../h/mh.h"
  2800. ***************
  2801. *** 424,430 ****
  2802.   
  2803.   #ifdef _FSTDIO
  2804.           /* <sigh> the code assumed that rewind does this. */
  2805. !         lseek (fileno(stdin), 0, SEEK_SET);
  2806.   #endif
  2807.           execlp (mhlproc, mhl, "-form", filter, "-noclear", NULLCP);
  2808.           fprintf (stderr, "unable to exec ");
  2809. --- 424,430 ----
  2810.   
  2811.   #ifdef _FSTDIO
  2812.           /* <sigh> the code assumed that rewind does this. */
  2813. !         (void) lseek (fileno(stdin), (off_t)0, SEEK_SET);
  2814.   #endif
  2815.           execlp (mhlproc, mhl, "-form", filter, "-noclear", NULLCP);
  2816.           fprintf (stderr, "unable to exec ");
  2817. *** ../mh-6.8.1/uip/rmail.c    Fri Aug 20 13:08:12 1993
  2818. --- uip/rmail.c    Wed Aug 25 15:56:45 1993
  2819. ***************
  2820. *** 1,6 ****
  2821.   /* rmail.c - replacement for /bin/rmail */
  2822.   #ifndef    lint
  2823. ! static char ident[] = "@(#)$Id: rmail.c,v 1.2 1992/11/04 00:59:59 jromine Exp $";
  2824.   #endif    lint
  2825.   
  2826.   /* This program has a long, long history.  It started as UCB's rmail, and
  2827. --- 1,6 ----
  2828.   /* rmail.c - replacement for /bin/rmail */
  2829.   #ifndef    lint
  2830. ! static char ident[] = "@(#)$Id: rmail.c,v 1.3 1993/08/25 17:27:43 jromine Exp $";
  2831.   #endif    lint
  2832.   
  2833.   /* This program has a long, long history.  It started as UCB's rmail, and
  2834. ***************
  2835. *** 71,77 ****
  2836.   int    pipeser ();
  2837.   
  2838.   
  2839. ! long    lseek ();
  2840.   
  2841.   /*   */
  2842.   
  2843. --- 71,77 ----
  2844.   int    pipeser ();
  2845.   
  2846.   
  2847. ! off_t    lseek ();
  2848.   
  2849.   /*   */
  2850.   
  2851. ***************
  2852. *** 594,600 ****
  2853.       return NOTOK;
  2854.       }
  2855.       (void) fclose (out);
  2856. !     (void) lseek (td, 0L, 0);
  2857.   
  2858.       (void) strcpy (mmdfil, "/tmp/mmdfXXXXXX");
  2859.       (void) unlink (mktemp (mmdfil));
  2860. --- 594,600 ----
  2861.       return NOTOK;
  2862.       }
  2863.       (void) fclose (out);
  2864. !     (void) lseek (td, (off_t)0, 0);
  2865.   
  2866.       (void) strcpy (mmdfil, "/tmp/mmdfXXXXXX");
  2867.       (void) unlink (mktemp (mmdfil));
  2868. *** ../mh-6.8.1/uip/sbboards.c    Fri Aug 20 13:08:04 1993
  2869. --- uip/sbboards.c    Wed Aug 25 15:56:40 1993
  2870. ***************
  2871. *** 4,10 ****
  2872.   /* spop.c - MH style mailer to write to a POP subscriber */
  2873.   #endif    SPOP
  2874.   #ifndef    lint
  2875. ! static char ident[] = "@(#)$Id: sbboards.c,v 1.8 1993/08/20 15:53:49 jromine Exp $";
  2876.   #endif    lint
  2877.   
  2878.   #ifndef    SPOP
  2879. --- 4,10 ----
  2880.   /* spop.c - MH style mailer to write to a POP subscriber */
  2881.   #endif    SPOP
  2882.   #ifndef    lint
  2883. ! static char ident[] = "@(#)$Id: sbboards.c,v 1.9 1993/08/25 17:27:54 jromine Exp $";
  2884.   #endif    lint
  2885.   
  2886.   #ifndef    SPOP
  2887. ***************
  2888. *** 101,107 ****
  2889.   static struct bboard  *bb[NBB];
  2890.   
  2891.   
  2892. ! long    lseek ();
  2893.   
  2894.   #ifndef    __STDC__
  2895.   #ifdef    SYS5
  2896. --- 101,107 ----
  2897.   static struct bboard  *bb[NBB];
  2898.   
  2899.   
  2900. ! off_t    lseek ();
  2901.   
  2902.   #ifndef    __STDC__
  2903.   #ifdef    SYS5
  2904. ***************
  2905. *** 170,176 ****
  2906.   
  2907.       for (i = 0; bp = bb[i]; i++)
  2908.       if (bp -> bb_file && *bp -> bb_file) {
  2909. !         (void) lseek (fd, 0L, 0);
  2910.   #ifndef    SPOP
  2911.           if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
  2912.   #else    SPOP
  2913. --- 170,176 ----
  2914.   
  2915.       for (i = 0; bp = bb[i]; i++)
  2916.       if (bp -> bb_file && *bp -> bb_file) {
  2917. !         (void) lseek (fd, (off_t)0, 0);
  2918.   #ifndef    SPOP
  2919.           if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
  2920.   #else    SPOP
  2921. ***************
  2922. *** 311,317 ****
  2923.       if (rp_isbad (retval = sm_waend ()))
  2924.       return lose ("problem ending addresses; %s", rp_string (retval));
  2925.   
  2926. !     (void) lseek (fd, 0L, 0);
  2927.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  2928.       if (rp_isbad (retval = sm_wtxt (buffer, i)))
  2929.           return lose ("problem writing text; %s", rp_string (retval));
  2930. --- 311,317 ----
  2931.       if (rp_isbad (retval = sm_waend ()))
  2932.       return lose ("problem ending addresses; %s", rp_string (retval));
  2933.   
  2934. !     (void) lseek (fd, (off_t)0, 0);
  2935.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  2936.       if (rp_isbad (retval = sm_wtxt (buffer, i)))
  2937.           return lose ("problem writing text; %s", rp_string (retval));
  2938. ***************
  2939. *** 420,426 ****
  2940.           goto sm_err;
  2941.       }
  2942.   
  2943. !     (void) lseek (bb_fderr, 0L, 0);
  2944.       while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
  2945.       if (rp_isbad (sm_wtxt (buffer, i)))
  2946.           goto sm_err;
  2947. --- 420,426 ----
  2948.           goto sm_err;
  2949.       }
  2950.   
  2951. !     (void) lseek (bb_fderr, (off_t)0, 0);
  2952.       while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
  2953.       if (rp_isbad (sm_wtxt (buffer, i)))
  2954.           goto sm_err;
  2955. ***************
  2956. *** 473,479 ****
  2957.                      *dp;
  2958.       char    outbuf[BUFSIZ];
  2959.   
  2960. !     (void) lseek (fd, 0L, 0);
  2961.   
  2962.       dp = (bp = outbuf) + sizeof outbuf;
  2963.       for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
  2964. --- 473,479 ----
  2965.                      *dp;
  2966.       char    outbuf[BUFSIZ];
  2967.   
  2968. !     (void) lseek (fd, (off_t)0, 0);
  2969.   
  2970.       dp = (bp = outbuf) + sizeof outbuf;
  2971.       for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
  2972. ***************
  2973. *** 607,613 ****
  2974.       if ((fd = open (tmpfil, 2)) == NOTOK)
  2975.       adios (EX_NOINPUT, tmpfil, "unable to re-open");
  2976.   
  2977. !     (void) lseek (qd, 0L, 0);
  2978.       while ((i = read (qd, buffer, sizeof buffer)) > 0)
  2979.       if (write (fd, buffer, i) != i)
  2980.           adios (EX_IOERR, tmpfil, "error writing");
  2981. --- 607,613 ----
  2982.       if ((fd = open (tmpfil, 2)) == NOTOK)
  2983.       adios (EX_NOINPUT, tmpfil, "unable to re-open");
  2984.   
  2985. !     (void) lseek (qd, (off_t)0, 0);
  2986.       while ((i = read (qd, buffer, sizeof buffer)) > 0)
  2987.       if (write (fd, buffer, i) != i)
  2988.           adios (EX_IOERR, tmpfil, "error writing");
  2989. ***************
  2990. *** 614,620 ****
  2991.       if (i == NOTOK)
  2992.       adios (EX_IOERR, "input", "error reading");
  2993.   
  2994. !     (void) lseek (fd, 0L, 0);
  2995.   
  2996.       return fd;
  2997.   }
  2998. --- 614,620 ----
  2999.       if (i == NOTOK)
  3000.       adios (EX_IOERR, "input", "error reading");
  3001.   
  3002. !     (void) lseek (fd, (off_t)0, 0);
  3003.   
  3004.       return fd;
  3005.   }
  3006. *** ../mh-6.8.1/uip/sendsbr.c    Fri Aug 20 13:07:59 1993
  3007. --- uip/sendsbr.c    Wed Aug 25 15:56:36 1993
  3008. ***************
  3009. *** 1,6 ****
  3010.   /* sendsbr.c - routines to help WhatNow/Send along */
  3011.   #ifndef    lint
  3012. ! static char ident[] = "@(#)$Id: sendsbr.c,v 2.13 1993/08/20 15:54:44 jromine Exp $";
  3013.   #endif    /* lint */
  3014.   
  3015.   #include "../h/mh.h"
  3016. --- 1,6 ----
  3017.   /* sendsbr.c - routines to help WhatNow/Send along */
  3018.   #ifndef    lint
  3019. ! static char ident[] = "@(#)$Id: sendsbr.c,v 2.14 1993/08/25 17:28:05 jromine Exp $";
  3020.   #endif    /* lint */
  3021.   
  3022.   #include "../h/mh.h"
  3023. ***************
  3024. *** 38,44 ****
  3025.   
  3026.   
  3027.   char   *getusr ();
  3028. ! long    lseek (), time ();
  3029.   
  3030.   /*   */
  3031.   
  3032. --- 38,45 ----
  3033.   
  3034.   
  3035.   char   *getusr ();
  3036. ! off_t    lseek ();
  3037. ! long    time ();
  3038.   
  3039.   /*   */
  3040.   
  3041. ***************
  3042. *** 396,402 ****
  3043.           if ((in = open (file, 0)) == NOTOK)
  3044.               admonish (file, "unable to re-open");
  3045.           else {
  3046. !             (void) lseek (out, 0L, 2);
  3047.               (void) strcpy (buf, "\nMessage not delivered to anyone.\n");
  3048.               (void) write (out, buf, strlen (buf));
  3049.               (void) strcpy (buf, "\n------- Unsent Draft\n\n");
  3050. --- 397,403 ----
  3051.           if ((in = open (file, 0)) == NOTOK)
  3052.               admonish (file, "unable to re-open");
  3053.           else {
  3054. !             (void) lseek (out, (off_t)0, 2);
  3055.               (void) strcpy (buf, "\nMessage not delivered to anyone.\n");
  3056.               (void) write (out, buf, strlen (buf));
  3057.               (void) strcpy (buf, "\n------- Unsent Draft\n\n");
  3058. ***************
  3059. *** 408,414 ****
  3060.               if (rename (file, strcpy (buf, m_backup (file))) == NOTOK)
  3061.               admonish (buf, "unable to rename %s to", file);
  3062.           }
  3063. !         (void) lseek (out, 0L, 0);
  3064.           (void) dup2 (out, fileno (stdin));
  3065.           (void) close (out);
  3066.           (void) sprintf (buf, "send failed on %s",
  3067. --- 409,415 ----
  3068.               if (rename (file, strcpy (buf, m_backup (file))) == NOTOK)
  3069.               admonish (buf, "unable to rename %s to", file);
  3070.           }
  3071. !         (void) lseek (out, (off_t)0, 0);
  3072.           (void) dup2 (out, fileno (stdin));
  3073.           (void) close (out);
  3074.           (void) sprintf (buf, "send failed on %s",
  3075. ***************
  3076. *** 564,570 ****
  3077.       goto oops;
  3078.       }
  3079.   
  3080. !     (void) lseek (fd, 0L, 0);
  3081.       if ((fp = fdopen (fd, "r")) == NULL) {
  3082.       if (debugsw)
  3083.           admonish (NULLCP, "unable to fdopen annotation list");
  3084. --- 565,571 ----
  3085.       goto oops;
  3086.       }
  3087.   
  3088. !     (void) lseek (fd, (off_t)0, 0);
  3089.       if ((fp = fdopen (fd, "r")) == NULL) {
  3090.       if (debugsw)
  3091.           admonish (NULLCP, "unable to fdopen annotation list");
  3092. *** ../mh-6.8.1/uip/slocal.c    Fri Aug 20 13:07:50 1993
  3093. --- uip/slocal.c    Wed Aug 25 15:56:25 1993
  3094. ***************
  3095. *** 1,6 ****
  3096.   /* slocal.c - MH style mailer to write to a local user's mailbox */
  3097.   #ifndef    lint
  3098. ! static char ident[] = "@(#)$Id: slocal.c,v 1.23 1992/12/15 00:20:22 jromine Exp $";
  3099.   #endif    /* lint */
  3100.   
  3101.   /* This program implements mail delivery in the MH/MMDF style.
  3102. --- 1,6 ----
  3103.   /* slocal.c - MH style mailer to write to a local user's mailbox */
  3104.   #ifndef    lint
  3105. ! static char ident[] = "@(#)$Id: slocal.c,v 1.24 1993/08/25 17:28:16 jromine Exp $";
  3106.   #endif    /* lint */
  3107.   
  3108.   /* This program implements mail delivery in the MH/MMDF style.
  3109. ***************
  3110. *** 181,187 ****
  3111.   static TYPESIG    alrmser ();
  3112.   
  3113.   
  3114. ! long    lseek ();
  3115.   #ifndef    __STDC__
  3116.   #ifdef    SYS5
  3117.   struct passwd *getpwnam ();
  3118. --- 181,187 ----
  3119.   static TYPESIG    alrmser ();
  3120.   
  3121.   
  3122. ! off_t    lseek ();
  3123.   #ifndef    __STDC__
  3124.   #ifdef    SYS5
  3125.   struct passwd *getpwnam ();
  3126. ***************
  3127. *** 896,902 ****
  3128.       return NOTOK;
  3129.       }
  3130.   
  3131. !     (void) lseek (fd, 0L, 0);
  3132.       if (mbx_copy (mailbox, md, fd, mapping, bp, verbose) == NOTOK) {
  3133.       adorn ("", "error writing to:");
  3134.       return NOTOK;
  3135. --- 896,902 ----
  3136.       return NOTOK;
  3137.       }
  3138.   
  3139. !     (void) lseek (fd, (off_t)0, 0);
  3140.       if (mbx_copy (mailbox, md, fd, mapping, bp, verbose) == NOTOK) {
  3141.       adorn ("", "error writing to:");
  3142.       return NOTOK;
  3143. ***************
  3144. *** 984,990 ****
  3145.       printf ("\tdelivering to pipe \"%s\"", cmd);
  3146.       (void) fflush (stdout);
  3147.       }
  3148. !     (void) lseek (fd, 0L, 0);
  3149.   
  3150.       for (i = 0; (child_id = fork ()) == NOTOK && i < 5; i++)
  3151.       sleep (5);
  3152. --- 984,990 ----
  3153.       printf ("\tdelivering to pipe \"%s\"", cmd);
  3154.       (void) fflush (stdout);
  3155.       }
  3156. !     (void) lseek (fd, (off_t)0, 0);
  3157.   
  3158.       for (i = 0; (child_id = fork ()) == NOTOK && i < 5; i++)
  3159.       sleep (5);
  3160. ***************
  3161. *** 1145,1151 ****
  3162.           }
  3163.       if (i == NOTOK)
  3164.           goto you_lose;
  3165. !     (void) lseek (fd1, 0L, 0);
  3166.       return fd1;
  3167.       }
  3168.   
  3169. --- 1145,1151 ----
  3170.           }
  3171.       if (i == NOTOK)
  3172.           goto you_lose;
  3173. !     (void) lseek (fd1, (off_t)0, 0);
  3174.       return fd1;
  3175.       }
  3176.   
  3177. ***************
  3178. *** 1221,1227 ****
  3179.       }
  3180.       (void) fclose (qfp);
  3181.   
  3182. !     (void) lseek (fd1, 0L, 0);
  3183.   
  3184.       return fd1;
  3185.   }
  3186. --- 1221,1227 ----
  3187.       }
  3188.       (void) fclose (qfp);
  3189.   
  3190. !     (void) lseek (fd1, (off_t)0, 0);
  3191.   
  3192.       return fd1;
  3193.   }
  3194. *** ../mh-6.8.1/uip/spop.c    Fri Aug 20 13:07:57 1993
  3195. --- uip/spop.c    Wed Aug 25 15:56:33 1993
  3196. ***************
  3197. *** 4,10 ****
  3198.   /* spop.c - MH style mailer to write to a POP subscriber */
  3199.   #endif    SPOP
  3200.   #ifndef    lint
  3201. ! static char ident[] = "@(#)$Id: spop.c,v 1.7 1993/08/20 15:55:23 jromine Exp $";
  3202.   #endif    lint
  3203.   
  3204.   #ifndef    SPOP
  3205. --- 4,10 ----
  3206.   /* spop.c - MH style mailer to write to a POP subscriber */
  3207.   #endif    SPOP
  3208.   #ifndef    lint
  3209. ! static char ident[] = "@(#)$Id: spop.c,v 1.8 1993/08/25 17:28:24 jromine Exp $";
  3210.   #endif    lint
  3211.   
  3212.   #ifndef    SPOP
  3213. ***************
  3214. *** 101,107 ****
  3215.   static struct bboard  *bb[NBB];
  3216.   
  3217.   
  3218. ! long    lseek ();
  3219.   
  3220.   #ifndef    __STDC__
  3221.   #ifdef    SYS5
  3222. --- 101,107 ----
  3223.   static struct bboard  *bb[NBB];
  3224.   
  3225.   
  3226. ! off_t    lseek ();
  3227.   
  3228.   #ifndef    __STDC__
  3229.   #ifdef    SYS5
  3230. ***************
  3231. *** 161,167 ****
  3232.   
  3233.       for (i = 0; bp = bb[i]; i++)
  3234.       if (bp -> bb_file && *bp -> bb_file) {
  3235. !         (void) lseek (fd, 0L, 0);
  3236.   #ifndef    SPOP
  3237.           if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
  3238.   #else    SPOP
  3239. --- 161,167 ----
  3240.   
  3241.       for (i = 0; bp = bb[i]; i++)
  3242.       if (bp -> bb_file && *bp -> bb_file) {
  3243. !         (void) lseek (fd, (off_t)0, 0);
  3244.   #ifndef    SPOP
  3245.           if ((md = mbx_open (bp -> bb_file, bb_uid, bb_gid, BBMODE))
  3246.   #else    SPOP
  3247. ***************
  3248. *** 302,308 ****
  3249.       if (rp_isbad (retval = sm_waend ()))
  3250.       return lose ("problem ending addresses; %s", rp_string (retval));
  3251.   
  3252. !     (void) lseek (fd, 0L, 0);
  3253.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  3254.       if (rp_isbad (retval = sm_wtxt (buffer, i)))
  3255.           return lose ("problem writing text; %s", rp_string (retval));
  3256. --- 302,308 ----
  3257.       if (rp_isbad (retval = sm_waend ()))
  3258.       return lose ("problem ending addresses; %s", rp_string (retval));
  3259.   
  3260. !     (void) lseek (fd, (off_t)0, 0);
  3261.       while ((i = read (fd, buffer, sizeof buffer)) > 0)
  3262.       if (rp_isbad (retval = sm_wtxt (buffer, i)))
  3263.           return lose ("problem writing text; %s", rp_string (retval));
  3264. ***************
  3265. *** 411,417 ****
  3266.           goto sm_err;
  3267.       }
  3268.   
  3269. !     (void) lseek (bb_fderr, 0L, 0);
  3270.       while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
  3271.       if (rp_isbad (sm_wtxt (buffer, i)))
  3272.           goto sm_err;
  3273. --- 411,417 ----
  3274.           goto sm_err;
  3275.       }
  3276.   
  3277. !     (void) lseek (bb_fderr, (off_t)0, 0);
  3278.       while ((i = read (bb_fderr, buffer, sizeof buffer)) > 0)
  3279.       if (rp_isbad (sm_wtxt (buffer, i)))
  3280.           goto sm_err;
  3281. ***************
  3282. *** 464,470 ****
  3283.                      *dp;
  3284.       char    outbuf[BUFSIZ];
  3285.   
  3286. !     (void) lseek (fd, 0L, 0);
  3287.   
  3288.       dp = (bp = outbuf) + sizeof outbuf;
  3289.       for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
  3290. --- 464,470 ----
  3291.                      *dp;
  3292.       char    outbuf[BUFSIZ];
  3293.   
  3294. !     (void) lseek (fd, (off_t)0, 0);
  3295.   
  3296.       dp = (bp = outbuf) + sizeof outbuf;
  3297.       for (state = S1; (i = read (fd, buffer, sizeof buffer)) > 0;)
  3298. ***************
  3299. *** 598,604 ****
  3300.       if ((fd = open (tmpfil, 2)) == NOTOK)
  3301.       adios (EX_NOINPUT, tmpfil, "unable to re-open");
  3302.   
  3303. !     (void) lseek (qd, 0L, 0);
  3304.       while ((i = read (qd, buffer, sizeof buffer)) > 0)
  3305.       if (write (fd, buffer, i) != i)
  3306.           adios (EX_IOERR, tmpfil, "error writing");
  3307. --- 598,604 ----
  3308.       if ((fd = open (tmpfil, 2)) == NOTOK)
  3309.       adios (EX_NOINPUT, tmpfil, "unable to re-open");
  3310.   
  3311. !     (void) lseek (qd, (off_t)0, 0);
  3312.       while ((i = read (qd, buffer, sizeof buffer)) > 0)
  3313.       if (write (fd, buffer, i) != i)
  3314.           adios (EX_IOERR, tmpfil, "error writing");
  3315. ***************
  3316. *** 605,611 ****
  3317.       if (i == NOTOK)
  3318.       adios (EX_IOERR, "input", "error reading");
  3319.   
  3320. !     (void) lseek (fd, 0L, 0);
  3321.   
  3322.       return fd;
  3323.   }
  3324. --- 605,611 ----
  3325.       if (i == NOTOK)
  3326.       adios (EX_IOERR, "input", "error reading");
  3327.   
  3328. !     (void) lseek (fd, (off_t)0, 0);
  3329.   
  3330.       return fd;
  3331.   }
  3332. *** ../mh-6.8.1/uip/ttyd.h    Fri Aug 20 13:08:08 1993
  3333. --- uip/ttyd.h    Wed Aug 25 15:56:43 1993
  3334. ***************
  3335. *** 1,4 ****
  3336. --- 1,7 ----
  3337.   /* ttyd.h - definitions for ttyd */
  3338. + #ifndef    lint
  3339. + static char Id[] = "@(#)$Id: ttyd.h,v 1.2 1993/08/25 17:29:12 jromine Exp $";
  3340. + #endif
  3341.   
  3342.   /* The Regents of the University of California wish to make it known that:
  3343.    *
  3344. ***************
  3345. *** 33,38 ****
  3346. --- 36,43 ----
  3347.       (errno > 0 && errno < sys_nerr ? sys_errlist[errno] : "Unknown error")
  3348.   
  3349.   extern int  errno;
  3350. + #ifndef    BSD44
  3351.   extern int  sys_nerr;
  3352.   extern char *sys_errlist[];
  3353.   extern char *sys_siglist[];
  3354. + #endif
  3355. *** ../mh-6.8.1/uip/umhook.c    Fri Aug 20 13:08:07 1993
  3356. --- uip/umhook.c    Wed Aug 25 15:56:42 1993
  3357. ***************
  3358. *** 1,6 ****
  3359.   /* umhook.c - one attempt at a rcvmail hook for UUCP mail */
  3360.   #ifndef    lint
  3361. ! static char ident[] = "@(#)$Id: umhook.c,v 1.3 1992/11/04 01:05:01 jromine Exp $";
  3362.   #endif    lint
  3363.   
  3364.   /* I don't comment my code heavily, so read this...
  3365. --- 1,6 ----
  3366.   /* umhook.c - one attempt at a rcvmail hook for UUCP mail */
  3367.   #ifndef    lint
  3368. ! static char ident[] = "@(#)$Id: umhook.c,v 1.4 1993/08/25 17:29:36 jromine Exp $";
  3369.   #endif    lint
  3370.   
  3371.   /* I don't comment my code heavily, so read this...
  3372. ***************
  3373. *** 59,65 ****
  3374.   
  3375.   int    sigser ();
  3376.   
  3377. ! long    lseek ();
  3378.   #ifdef    SYS5
  3379.   #ifndef __STDC__
  3380.   struct passwd  *getpwuid ();
  3381. --- 59,65 ----
  3382.   
  3383.   int    sigser ();
  3384.   
  3385. ! off_t    lseek ();
  3386.   #ifdef    SYS5
  3387.   #ifndef __STDC__
  3388.   struct passwd  *getpwuid ();
  3389. ***************
  3390. *** 226,233 ****
  3391.   
  3392.       if ((uucp = lkopen (mymail, 0)) == NOTOK)
  3393.       adios (NULLCP, "unable to lock and open %s", mymail);
  3394. !     if (lseek (uucp, (long) offset, 0) == (long) NOTOK)
  3395. !     adios (mymail, "unable to position to %ld offset on", offset);
  3396.   
  3397.       (void) strcpy (tmpfil, m_tmpfil (invo_name));
  3398.       if ((td1 = creat (tmpfil, TMPMODE)) == NOTOK)
  3399. --- 226,233 ----
  3400.   
  3401.       if ((uucp = lkopen (mymail, 0)) == NOTOK)
  3402.       adios (NULLCP, "unable to lock and open %s", mymail);
  3403. !     if (lseek (uucp, (off_t) offset, 0) == (off_t) NOTOK)
  3404. !     adios (mymail, "unable to position to %ld offset on", (long) offset);
  3405.   
  3406.       (void) strcpy (tmpfil, m_tmpfil (invo_name));
  3407.       if ((td1 = creat (tmpfil, TMPMODE)) == NOTOK)
  3408. ***************
  3409. *** 266,272 ****
  3410.   
  3411.       (void) close (td1);
  3412.   
  3413. !     (void) lseek (td2, 0L, 0);
  3414.       if ((fp = fdopen (td2, "r")) == NULL)
  3415.       adios (NULLCP, "no free file pointers");
  3416.   
  3417. --- 266,272 ----
  3418.   
  3419.       (void) close (td1);
  3420.   
  3421. !     (void) lseek (td2, (off_t)0, 0);
  3422.       if ((fp = fdopen (td2, "r")) == NULL)
  3423.       adios (NULLCP, "no free file pointers");
  3424.   
  3425. ***************
  3426. *** 319,325 ****
  3427.       }
  3428.       (void) fclose (out);
  3429.   
  3430. !     (void) lseek (fd2, 0L, 0);
  3431.       seeksndr (fd2, mysndr);
  3432.   
  3433.   /*   */
  3434. --- 319,325 ----
  3435.       }
  3436.       (void) fclose (out);
  3437.   
  3438. !     (void) lseek (fd2, (off_t)0, 0);
  3439.       seeksndr (fd2, mysndr);
  3440.   
  3441.   /*   */
  3442. ***************
  3443. *** 329,335 ****
  3444.           adios ("fork", "unable to");/* NOTREACHED */
  3445.   
  3446.       case OK: 
  3447. !         (void) lseek (fd2, 0L, 0);
  3448.           if (fd2 != 0)
  3449.           (void) dup2 (fd2, 0);
  3450.           (void) freopen ("/dev/null", "w", stdout);
  3451. --- 329,335 ----
  3452.           adios ("fork", "unable to");/* NOTREACHED */
  3453.   
  3454.       case OK: 
  3455. !         (void) lseek (fd2, (off_t)0, 0);
  3456.           if (fd2 != 0)
  3457.           (void) dup2 (fd2, 0);
  3458.           (void) freopen ("/dev/null", "w", stdout);
  3459. ***************
  3460. *** 441,447 ****
  3461.           && (fd = creat (mystat, TMPMODE)) == NOTOK)
  3462.       adios (mystat, "unable to write");
  3463.   
  3464. !     (void) lseek (fd, 0L, 0);
  3465.       if (write (fd, (char *) st, sizeof *st) != (sizeof *st))
  3466.       adios (mystat, "error writing");
  3467.   }
  3468. --- 441,447 ----
  3469.           && (fd = creat (mystat, TMPMODE)) == NOTOK)
  3470.       adios (mystat, "unable to write");
  3471.   
  3472. !     (void) lseek (fd, (off_t)0, 0);
  3473.       if (write (fd, (char *) st, sizeof *st) != (sizeof *st))
  3474.       adios (mystat, "error writing");
  3475.   }
  3476. *** ../mh-6.8.1/uip/vmh.c    Fri Aug 20 13:07:59 1993
  3477. --- uip/vmh.c    Wed Aug 25 15:56:36 1993
  3478. ***************
  3479. *** 1,6 ****
  3480.   /* vmh.c - visual front-end to mh */
  3481.   #ifndef    lint
  3482. ! static char ident[] = "@(#)$Id: vmh.c,v 1.19 1993/02/26 22:00:33 jromine Exp $";
  3483.   #endif    /* lint */
  3484.   #if defined(SYS5) && !defined(TERMINFO)
  3485.   /*
  3486. --- 1,6 ----
  3487.   /* vmh.c - visual front-end to mh */
  3488.   #ifndef    lint
  3489. ! static char ident[] = "@(#)$Id: vmh.c,v 1.20 1993/08/25 17:29:44 jromine Exp $";
  3490.   #endif    /* lint */
  3491.   #if defined(SYS5) && !defined(TERMINFO)
  3492.   /*
  3493. ***************
  3494. *** 189,196 ****
  3495. --- 189,198 ----
  3496.   
  3497.                       /* MISCELLANY */
  3498.   extern int  errno;
  3499. + #ifndef    BSD44
  3500.   extern int  sys_nerr;
  3501.   extern char *sys_errlist[];
  3502. + #endif
  3503.   
  3504.   static void    adorn ();
  3505.   
  3506. *** ../mh-6.8.1/uip/vmhsbr.c    Fri Aug 20 13:08:15 1993
  3507. --- uip/vmhsbr.c    Wed Aug 25 15:56:46 1993
  3508. ***************
  3509. *** 1,6 ****
  3510.   /* vmhsbr.c - routines to help vmh along */
  3511.   #ifndef    lint
  3512. ! static char ident[] = "@(#)$Id: vmhsbr.c,v 1.10 1992/12/15 00:20:22 jromine Exp $";
  3513.   #endif    /* lint */
  3514.   
  3515.   /* TODO (for vrsn 2):
  3516. --- 1,6 ----
  3517.   /* vmhsbr.c - routines to help vmh along */
  3518.   #ifndef    lint
  3519. ! static char ident[] = "@(#)$Id: vmhsbr.c,v 1.11 1993/08/25 17:29:53 jromine Exp $";
  3520.   #endif    /* lint */
  3521.   
  3522.   /* TODO (for vrsn 2):
  3523. ***************
  3524. *** 26,33 ****
  3525. --- 26,35 ----
  3526.   
  3527.   
  3528.   extern int  errno;
  3529. + #ifndef    BSD44
  3530.   extern int  sys_nerr;
  3531.   extern char *sys_errlist[];
  3532. + #endif
  3533.   
  3534.   static int    rclose();
  3535.   /*   */
  3536. *** ../mh-6.8.1/uip/wmh.c    Fri Aug 20 13:08:17 1993
  3537. --- uip/wmh.c    Wed Aug 25 15:56:49 1993
  3538. ***************
  3539. *** 1,6 ****
  3540.   /* wmh.c - window front-end to mh */
  3541.   #ifndef    lint
  3542. ! static char ident[] = "@(#)$Id: wmh.c,v 1.4 1992/11/04 02:29:30 jromine Exp $";
  3543.   #endif    lint
  3544.   
  3545.   /* TODO:
  3546. --- 1,6 ----
  3547.   /* wmh.c - window front-end to mh */
  3548.   #ifndef    lint
  3549. ! static char ident[] = "@(#)$Id: wmh.c,v 1.5 1993/08/25 17:29:59 jromine Exp $";
  3550.   #endif    lint
  3551.   
  3552.   /* TODO:
  3553. ***************
  3554. *** 144,151 ****
  3555. --- 144,153 ----
  3556.   
  3557.                       /* MISCELLANY */
  3558.   extern int  errno;
  3559. + #ifndef    BSD44
  3560.   extern int  sys_nerr;
  3561.   extern char *sys_errlist[];
  3562. + #endif
  3563.   
  3564.   void    adorn ();
  3565.   
  3566. *** ../mh-6.8.1/zotnet/mf/mmdfI/src/uucp/qu2uu_send.c    Fri Aug 20 13:07:48 1993
  3567. --- zotnet/mf/mmdfI/src/uucp/qu2uu_send.c    Wed Aug 25 15:56:23 1993
  3568. ***************
  3569. *** 1,4 ****
  3570. --- 1,7 ----
  3571.   #define    MFDEBUG            /* temporarily */
  3572. + #ifndef    lint
  3573. + static char Id[] = "@(#)$Id: qu2uu_send.c,v 1.2 1993/08/25 17:32:12 jromine Exp $";
  3574. + #endif
  3575.   
  3576.   /* qu2uu_send.c - manager for qu --> uu */
  3577.   
  3578. ***************
  3579. *** 204,210 ****
  3580.       if (mf_fd == NOTOK)
  3581.       qu_rtinit (pos);
  3582.       else
  3583. !     lseek (mf_fd, pos, 0);
  3584.   }
  3585.   
  3586.   
  3587. --- 207,213 ----
  3588.       if (mf_fd == NOTOK)
  3589.       qu_rtinit (pos);
  3590.       else
  3591. !     lseek (mf_fd, (off_t) pos, 0);
  3592.   }
  3593.   
  3594.   
  3595. ***************
  3596. *** 249,255 ****
  3597.       FILE * fp;
  3598.   #endif    MFDEBUG
  3599.   
  3600. !     lseek (md, 0L, 0);
  3601.       if ((qd = dup (md)) == NOTOK)
  3602.       return NOTOK;
  3603.   
  3604. --- 252,258 ----
  3605.       FILE * fp;
  3606.   #endif    MFDEBUG
  3607.   
  3608. !     lseek (md, (off_t)0, 0);
  3609.       if ((qd = dup (md)) == NOTOK)
  3610.       return NOTOK;
  3611.   
  3612. ***************
  3613. *** 276,282 ****
  3614.           goto ml_err;
  3615.       ml_txt (buffer);
  3616.   #ifdef    MFDEBUG
  3617. !     lseek (md, 0L, 0);
  3618.       if ((fd = dup (md)) == NOTOK)
  3619.           ml_txt ("unable to dup() descriptor for message copy\n");
  3620.       else
  3621. --- 279,285 ----
  3622.           goto ml_err;
  3623.       ml_txt (buffer);
  3624.   #ifdef    MFDEBUG
  3625. !     lseek (md, (off_t)0, 0);
  3626.       if ((fd = dup (md)) == NOTOK)
  3627.           ml_txt ("unable to dup() descriptor for message copy\n");
  3628.       else
  3629. *** ../mh-6.8.1/zotnet/mf/mmdfI/src/uucp/rmail.c    Fri Aug 20 13:07:48 1993
  3630. --- zotnet/mf/mmdfI/src/uucp/rmail.c    Wed Aug 25 15:56:23 1993
  3631. ***************
  3632. *** 1,4 ****
  3633. --- 1,7 ----
  3634.   #define    MFDEBUG            /* temporarily */
  3635. + #ifndef    lint
  3636. + static char Id[] = "@(#)$Id: rmail.c,v 1.2 1993/08/25 17:32:49 jromine Exp $";
  3637. + #endif
  3638.   
  3639.   #include "util.h"
  3640.   #include "mmdf.h"
  3641. ***************
  3642. *** 666,672 ****
  3643.       return NOTOK;
  3644.       }
  3645.       fclose (out);
  3646. !     lseek (td, 0L, 0);
  3647.   
  3648.       strcpy (mmdfil, "/tmp/mmdfXXXXXX");
  3649.       unlink (mktemp (mmdfil));
  3650. --- 669,675 ----
  3651.       return NOTOK;
  3652.       }
  3653.       fclose (out);
  3654. !     lseek (td, (off_t)0, 0);
  3655.   
  3656.       strcpy (mmdfil, "/tmp/mmdfXXXXXX");
  3657.       unlink (mktemp (mmdfil));
  3658. ***************
  3659. *** 691,697 ****
  3660.   
  3661.       switch (i = uucp_to_mmdf (td, fd, TRUE)) {
  3662.       case OK: 
  3663. !         lseek (md, 0L, 0);
  3664.           if ((mmdf = fdopen (md, "r")) != NULL)
  3665.           break;
  3666.   
  3667. --- 694,700 ----
  3668.   
  3669.       switch (i = uucp_to_mmdf (td, fd, TRUE)) {
  3670.       case OK: 
  3671. !         lseek (md, (off_t)0, 0);
  3672.           if ((mmdf = fdopen (md, "r")) != NULL)
  3673.           break;
  3674.   
  3675. ***************
  3676. *** 705,711 ****
  3677.           goto ml_err;
  3678.           ml_txt (buffer);
  3679.   #ifdef    MFDEBUG
  3680. !         lseek (td, 0L, 0);
  3681.           if ((md = dup (td)) == NOTOK)
  3682.           ml_txt ("unable to dup() descriptor for message copy\n");
  3683.           else
  3684. --- 708,714 ----
  3685.           goto ml_err;
  3686.           ml_txt (buffer);
  3687.   #ifdef    MFDEBUG
  3688. !         lseek (td, (off_t)0, 0);
  3689.           if ((md = dup (td)) == NOTOK)
  3690.           ml_txt ("unable to dup() descriptor for message copy\n");
  3691.           else
  3692. *** ../mh-6.8.1/zotnet/mf/muinc.c    Fri Aug 20 13:07:45 1993
  3693. --- zotnet/mf/muinc.c    Wed Aug 25 15:56:19 1993
  3694. ***************
  3695. *** 1,4 ****
  3696. --- 1,7 ----
  3697.   /* muinc.c - mmdf to uucp inc */
  3698. + #ifndef    lint
  3699. + static char Id[] = "@(#)$Id: muinc.c,v 1.2 1993/08/25 17:30:36 jromine Exp $";
  3700. + #endif
  3701.   
  3702.   #include "mf.h"
  3703.   #include <stdio.h>
  3704. ***************
  3705. *** 101,107 ****
  3706.           die ("unable to open UUCP mailbox '%s'", file);
  3707.       }
  3708.   
  3709. !     lseek (fd, 0L, 2);
  3710.   
  3711.       return fd;
  3712.   }
  3713. --- 104,110 ----
  3714.           die ("unable to open UUCP mailbox '%s'", file);
  3715.       }
  3716.   
  3717. !     lseek (fd, (off_t)0, 2);
  3718.   
  3719.       return fd;
  3720.   }
  3721. ***************
  3722. *** 128,134 ****
  3723.       int     i;
  3724.       char    buffer[BUFSIZ];
  3725.   
  3726. !     lseek (in, 0L, 0);
  3727.   
  3728.       while ((i = read (in, buffer, sizeof buffer)) > 0)
  3729.       if (write (out, buffer, i) != i)
  3730. --- 131,137 ----
  3731.       int     i;
  3732.       char    buffer[BUFSIZ];
  3733.   
  3734. !     lseek (in, (off_t)0, 0);
  3735.   
  3736.       while ((i = read (in, buffer, sizeof buffer)) > 0)
  3737.       if (write (out, buffer, i) != i)
  3738. *** ../mh-6.8.1/zotnet/mf/uminc.c    Fri Aug 20 13:07:44 1993
  3739. --- zotnet/mf/uminc.c    Wed Aug 25 15:56:18 1993
  3740. ***************
  3741. *** 1,4 ****
  3742. --- 1,7 ----
  3743.   /* uminc.c - uucp to mmdf inc */
  3744. + #ifndef    lint
  3745. + static char Id[] = "@(#)$Id: uminc.c,v 1.2 1993/08/25 17:31:30 jromine Exp $";
  3746. + #endif
  3747.   
  3748.   #include "mf.h"
  3749.   #include <stdio.h>
  3750. ***************
  3751. *** 14,20 ****
  3752.   static char uucpbox[LINESIZ];
  3753.   
  3754.   
  3755. ! long    lseek ();
  3756.   
  3757.   /*   */
  3758.   
  3759. --- 17,23 ----
  3760.   static char uucpbox[LINESIZ];
  3761.   
  3762.   
  3763. ! off_t    lseek ();
  3764.   
  3765.   /*   */
  3766.   
  3767. ***************
  3768. *** 144,150 ****
  3769.   
  3770.       count = strlen (mmdlm2);
  3771.   
  3772. !     if (lseek (fd, (long) - count, 2) == (long) NOTOK
  3773.           || read (fd, ldelim, count) != count)
  3774.       die ("error reading MMDF mailbox '%s'", file);
  3775.       ldelim[count] = NULL;
  3776. --- 147,153 ----
  3777.   
  3778.       count = strlen (mmdlm2);
  3779.   
  3780. !     if (lseek (fd, (off_t) - count, 2) == (off_t) NOTOK
  3781.           || read (fd, ldelim, count) != count)
  3782.       die ("error reading MMDF mailbox '%s'", file);
  3783.       ldelim[count] = NULL;
  3784. ***************
  3785. *** 167,173 ****
  3786.       int     i;
  3787.       char    buffer[BUFSIZ];
  3788.   
  3789. !     lseek (in, 0L, 0);
  3790.   
  3791.       while ((i = read (in, buffer, sizeof buffer)) > 0)
  3792.       if (write (out, buffer, i) != i)
  3793. --- 170,176 ----
  3794.       int     i;
  3795.       char    buffer[BUFSIZ];
  3796.   
  3797. !     lseek (in, (off_t)0, 0);
  3798.   
  3799.       while ((i = read (in, buffer, sizeof buffer)) > 0)
  3800.       if (write (out, buffer, i) != i)
  3801. *** ../mh-6.8.1/zotnet/mts/client.c    Fri Aug 20 13:07:43 1993
  3802. --- zotnet/mts/client.c    Wed Aug 25 15:56:17 1993
  3803. ***************
  3804. *** 1,6 ****
  3805.   /* client.c - connect to a server */
  3806.   #ifndef    lint
  3807. ! static char ident[] = "@(#)$Id: client.c,v 1.20 1993/08/20 15:55:35 jromine Exp $";
  3808.   #endif    /* lint */
  3809.   
  3810.   #if    defined(SYS5) && defined(AUX)
  3811. --- 1,6 ----
  3812.   /* client.c - connect to a server */
  3813.   #ifndef    lint
  3814. ! static char ident[] = "@(#)$Id: client.c,v 1.21 1993/08/25 17:32:58 jromine Exp $";
  3815.   #endif    /* lint */
  3816.   
  3817.   #if    defined(SYS5) && defined(AUX)
  3818. ***************
  3819. *** 53,60 ****
  3820. --- 53,62 ----
  3821.   /*   */
  3822.   
  3823.   extern int errno;
  3824. + #ifndef    BSD44
  3825.   extern int  sys_nerr;
  3826.   extern char *sys_errlist[];
  3827. + #endif
  3828.   
  3829.   
  3830.   struct addrent {
  3831. *** ../mh-6.8.1/zotnet/mts/lock.c    Fri Aug 20 13:07:43 1993
  3832. --- zotnet/mts/lock.c    Wed Aug 25 15:56:16 1993
  3833. ***************
  3834. *** 1,6 ****
  3835.   /* lock.c - universal locking routines */
  3836.   #ifndef    lint
  3837. ! static char ident[] = "@(#)$Id: lock.c,v 2.18 1992/11/12 23:26:49 jromine Exp $";
  3838.   #endif
  3839.   /* compile-time priority:
  3840.    *    LOCKF    use if defined
  3841. --- 1,6 ----
  3842.   /* lock.c - universal locking routines */
  3843.   #ifndef    lint
  3844. ! static char ident[] = "@(#)$Id: lock.c,v 2.19 1993/08/25 17:33:09 jromine Exp $";
  3845.   #endif
  3846.   /* compile-time priority:
  3847.    *    LOCKF    use if defined
  3848. ***************
  3849. *** 265,273 ****
  3850.           /* see if we should be at the end */
  3851.           if (j & O_APPEND)
  3852.   #ifdef SVR4
  3853. !         lseek (fd, 0L, SEEK_END);
  3854.   #else
  3855. !         lseek (fd, 0L, L_XTND);
  3856.   #endif
  3857.           return fd;
  3858.       }
  3859. --- 265,273 ----
  3860.           /* see if we should be at the end */
  3861.           if (j & O_APPEND)
  3862.   #ifdef SVR4
  3863. !         lseek (fd, (off_t)0, SEEK_END);
  3864.   #else
  3865. !         lseek (fd, (off_t)0, L_XTND);
  3866.   #endif
  3867.           return fd;
  3868.       }
  3869. ***************
  3870. *** 322,328 ****
  3871.           break;
  3872.   #endif
  3873.   #else    /* LOCKF */
  3874. !         lseek (fd, 0L, L_SET); /* make sure we unlock the whole thing */
  3875.           lockf (fd, F_ULOCK, 0L);
  3876.           break;
  3877.   #endif    
  3878. --- 322,328 ----
  3879.           break;
  3880.   #endif
  3881.   #else    /* LOCKF */
  3882. !         lseek (fd, (off_t)0, L_SET); /* make sure we unlock the whole thing */
  3883.           lockf (fd, F_ULOCK, 0L);
  3884.           break;
  3885.   #endif    
  3886.